When I'm git clonefrom a repo, I get
fatal: Could not get current working directory: No such file or directory
What should I do? I checked the server and found that the file exists .git. An instance of Gitlab is running on the server. I configured correctly sshusing the keys, and for some time I committed and cloned without any errors, and this happens all of a sudden.
FWIW, I do git clonein a bash script.
Update
This is my bash script,
for repo in $repos
do
git clone $repo /tmp/tmpdir/
rm -rf /tmp/tmpdir/
done
for the first repoit’s good, but when it forfalls into the second repo, it fails and gives the above error fatal.
source
share