Bug 10883 - git not works with GIT_DIR and repository without .git
: git not works with GIT_DIR and repository without .git
Status: CLOSED NOTABUG
: Sisyphus
(All bugs in Sisyphus/git)
: unstable
: all Linux
: P2 major
Assigned To:
:
:
:
:
:
  Show dependency tree
 
Reported: 2007-02-20 16:56 by
Modified: 2008-07-21 12:35 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-02-20 16:56:34
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
3.git-reset -hard
Actual Results:  
fatal: /usr/bin/git-reset cannot be used without a working tree.

Expected Results:  
some other tree filled with working dir contents
------- Comment #1 From 2007-02-20 18:12:25 -------
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.