-
-
Notifications
You must be signed in to change notification settings - Fork 605
consider GIT_DIR
/GIT
when opening gitui
#1223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
In the meantime, have you tried using launching
|
You are absolutely right, this is the correct workaround. |
I wholeheartedly agree, I just wanted to ease your trouble until it's implemented properly :) |
I just found 13afbf6 I guess it is just not released. Sorry for the noise... |
On that note, But in general this is not enough, because GIT_WORK_TREE for vcsh managed repos is in the home directory which causes |
@glaeqen sounds like this is a whole different issue. can you open a new one and describe it so one can reproduce without prior knowledge? |
Is your feature request related to a problem? Please describe.
I am using
vcsh
to manage my dotfiles. It is a wrapper around git, which allows me to have more than one git repository "checked out" in the home directory. I would love to use gitui to stage/commit/log... in the vcsh repositories.But currently it tells me:
Whereas the normal git commands like i.e.
git log
work as usual.Describe the solution you'd like
gitui should respect the
GIT_DIR
variable, such that one can use gitui even if they are not in a subfolder of the git repo if this variable is set.Describe alternatives you've considered
One could checkout the repos like normal, edit/copy and commit in the normal repo, push and pull via vcsh.
Additional context
https://github.com/RichiH/vcsh
https://git-scm.com/book/en/v2/Git-Internals-Environment-Variables
The text was updated successfully, but these errors were encountered: