-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/git: implement CommonDir in-process
Turns out, older versions of Git have a version of --git-common-dir that returns incorrect results when run from a subdirectory. I've implemented the algorithm described in the gitrepository-layout man page. I wrote the tests and they pass on a non-buggy Git using rev-parse, then implemented the new algorithm and got the same results. Added a regression test case to `gg gerrithook`. Fixes #105
- Loading branch information
Showing
3 changed files
with
164 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters