I\'m getting the following error when issuing the command git clone --bare /path/to/repo:
git clone --bare /path/to/repo
fatal: attempt to fetch/clone from a shallow repository<
Rename .git/shallow to something else, clone, rename it back, copy .git/shallow to cloned repository