Someone is leaking GIT_DIR env

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-11-01 09:43:02 +00:00
parent 2d435980c7
commit 923f8e22fc

View file

@ -14,6 +14,7 @@ src="$1"
dest="$2"
if [ -d $dest/.git ]; then
cd $dest
unset GIT_DIR
/usr/bin/git pull 2>&1
else
/usr/bin/git clone $src $dest 2>&1 | sed 's/^/ /'