Dear all,
 
I found the solution. With env -i to unset the environment the git command 
does work
#!/bin/sh
DATE_STAMP=$(date +%Y%m%d%H%M)
LOG=/var/tmp/git.log
echo "checkout $DATE_STAMP" >>$LOG
cd /var/tmp/test2_clone
env -i git fetch origin
env -i git reset --hard origin/master
env -i git clean -f -d
 
Andreas
 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to