I would like to sync the central bare repository to an other directory.
After a git push on a local repository my post-receive hook is executed.
echo "checkout $DATE_STAMP" >>$LOG
git checkout *
The log file is written and ls shows the destination directory, but git
checkout * does not work.
Enter passphrase for key '/home/user1/.ssh/id_rsa':
Counting objects: 5, done.
Delta compression using up to 32 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 292 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: total 12
remote: drwxr-xr-x 3 git git 4096 26. Jul 16:12 .
remote: drwxrwxrwt. 4 root root 4096 26. Jul 16:08 ..
remote: drwxrwxr-x 8 git git 4096 26. Jul 16:12 .git
remote: fatal: Not a git repository: '.'
ca4950c..6a00a47 master -> master
If I execute git checkout * manually it does work. Can somebody please help
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
For more options, visit https://groups.google.com/groups/opt_out.