ALT Linux Bugzilla – #10883
git not works with GIT_DIR and repository without .git
Last modified: 2008-07-21 12:35:45
You need to
before you can comment on or make changes to this bug.
Git dishonours GIT_DIR where gitdir doesn't contain .git
at all. Note: git-repo-config core.bare false didn't help also.
Steps to Reproduce:
1.Make GIT_DIR pointing to some directory, not starting with "."
2.cd to some other dir
fatal: /usr/bin/git-reset cannot be used without a working tree.
some other tree filled with working dir contents
git-reset --hard cannot be used without a working tree.
When you specify GIT_DIR out of your working tree, git-reset
just fails to find it.