[packages/git-lfs] do not get affected from env from rpmbuild runs

glen glen at pld-linux.org
Thu Apr 7 10:23:07 CEST 2016


commit 61923bef92b21e296791467a6257cc41c4d1cfc7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Apr 7 11:22:49 2016 +0300

    do not get affected from env from rpmbuild runs

 git-lfs.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/git-lfs.spec b/git-lfs.spec
index 394af7a..0a4493b 100644
--- a/git-lfs.spec
+++ b/git-lfs.spec
@@ -33,6 +33,7 @@ mkdir -p src/github.com/github
 ln -s $(pwd) src/github.com/github/%{name}
 
 %build
+unset GOROOT
 export GOPATH=$(pwd)
 %ifarch %{ix86}
 	GOARCH=386 ./script/bootstrap
@@ -47,7 +48,7 @@ export GOPATH=$(pwd)
 
 %if %{with tests}
 # ensure there are no GIT env vars for testing
-unset GIT_DIR GIT_WORK_TREE
+#unset GIT_DIR GIT_WORK_TREE
 env | grep GIT_ && exit 3
 
 ./script/test
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-lfs.git/commitdiff/61923bef92b21e296791467a6257cc41c4d1cfc7



More information about the pld-cvs-commit mailing list