On Mon, 29 Jul 2013 06:06:32 -0700 (PDT)
Andreas Dvorak <andreas.dvo...@googlemail.com> wrote:

> 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

The probem here is that you have no idea why this fixed your problem.
Please try to understand why happens using the approach I proposed in
my other mail and invent a proper (read: thought-out) fix to your

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