Skip to content
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

Git should use --git-dir and --work-tree not changing directory #1577

Closed
ndmitchell opened this issue Dec 30, 2015 · 3 comments
Closed

Git should use --git-dir and --work-tree not changing directory #1577

ndmitchell opened this issue Dec 30, 2015 · 3 comments

Comments

@ndmitchell
Copy link
Contributor

If the git process used gitdir/worktree arguments instead of changing process directory it would be easier to debug unexpected failures because you could copy/paste the command lines anywhere. See http://stackoverflow.com/questions/1386291/git-git-dir-not-working-as-expected for advice on how to use it.

@ndmitchell
Copy link
Contributor Author

#1578 alleviates this a bit, but using just flags would still be more convenient.

@mgsloan
Copy link
Contributor

mgsloan commented Dec 30, 2015

Makes sense to me, I agree it's nice when the command lines in the verbose log can be copy-pasted.

@snoyberg
Copy link
Contributor

With the new Pantry approach, I don't think this is relevant on master anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants