You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# run in blank dir
export GIT_DIR=.gitgit
export GIT_WORK_TREE=.
# create empty repo
git init
ls
# => should show .gitgit
git status
# => should not error, git respects these variables
git-cola
# doesn't recognize the repo in current dir, shows repo chooser dialog instead
This kind of breaks git-cola for custom .git dirs, although all the machinery is there (in git.py).
The text was updated successfully, but these errors were encountered:
That commit does seem sensible. We did intend to support custom GIT_DIR and GIT_WORK_TREE settings.
There might be a few places (which I think you already found) where .git might be hard-coded but I'd be happy to take patches that trim those away.
There is one wrinkle when running in that mode ~ doing things like trying to open a different repository may behave unexpectedly / incorrectly, but that's acceptable as long as the single-repo use case is kept working when a custom GIT_DIR is being used.
Thanks for digging into these edge cases, that's really helpful.
Steps to reproduce:
This kind of breaks
git-cola
for custom .git dirs, although all the machinery is there (ingit.py
).The text was updated successfully, but these errors were encountered: