cli-v5.0.130
maggie-lou
tagged this
04 Dec 16:56
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 https://github.com/buildbuddy-io/buildbuddy/pull/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 https://github.com/buildbuddy-io/buildbuddy/issues/7896 Fixes https://github.com/buildbuddy-io/buildbuddy-internal/issues/3717