I am trying to clone my local git repository inside a pre-click script (client click). I get an exception:
fatal: working tree '...' already exists.
I don't understand the exception, as I obviously cloned the repo into another directory.
Any ideas?
I tried:
unset GIT_DIR
cd ..
git clone ./TestTest/ /tmp/PrePushTestClone
It doesn’t work exactly the same: (
source
share