Hi, 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. DATE_STAMP=$(date +%Y%m%d%H%M) LOG=/var/tmp/git.log echo "checkout $DATE_STAMP" >>$LOG cd /var/tmp/test2_clone ls -la git checkout * The log file is written and ls shows the destination directory, but git checkout * does not work. git push 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: '.' To git@rh6-puppet-master:/data/git/test2.git ca4950c..6a00a47 master -> master If I execute git checkout * manually it does work. Can somebody please help me? Best regards, 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.