Bug 10883

Summary: git not works with GIT_DIR and repository without .git
Product: Sisyphus Reporter: nbr <nbr>
Component: gitAssignee: placeholder <placeholder>
Status: CLOSED NOTABUG QA Contact: qa-sisyphus
Severity: major    
Priority: P2 CC: glebfm, ldv, placeholder
Version: unstable   
Hardware: all   
OS: Linux   

Description nbr 2007-02-20 16:56:34 MSK
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 Dmitry V. Levin 2007-02-20 18:12:25 MSK
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.