-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RB] Finish refactoring out go-git from CLI (#7989)
Our usage of go-git in the remote bazel CLI doesn't handle a series of edge cases and has resulted in some performance problems. This PR is a continuation of #7933 Also: * Fixes an assumption that the default branch had to be named `main` or `master` * Tries to minimize slow remote git calls by making one `git ls-remote --symref origin` call at the beginning, and passing the output to helper function * Fixes a bug where the flags weren't parsed when we were trying to use them Fixes #7896 Fixes buildbuddy-io/buildbuddy-internal#3717
- Loading branch information
1 parent
8c219d2
commit 70e2531
Showing
4 changed files
with
100 additions
and
96 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
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