I try to clone my local git repository inside the pre-push script (client hook). I get the exception:
fatal: working tree '...' already exists.
I don't understand the exception, since i obviously clone the repo to a different directory.
Any ideas?
I tried that:
unset GIT_DIR
cd ..
git clone ./TestTest/ /tmp/PrePushTestClone
It fails exactly the same way :(