diff options
author | James Fargher <jfargher@gitlab.com> | 2022-06-21 00:27:41 +0300 |
---|---|---|
committer | James Fargher <jfargher@gitlab.com> | 2022-06-21 00:27:41 +0300 |
commit | 9f2c9a53ed1c5e2bcef9a09c2b114a5da63282fe (patch) | |
tree | 103d39af53581cc0af5d6cfd385367adab38a9c3 | |
parent | 632244d99c5a0080ff31ece43c0831a9ab192967 (diff) |
Stop git from using alternateRefCommandstop_alternate_ref_command
The default alternate ref query is too slow.
-rw-r--r-- | internal/git/command_description.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/git/command_description.go b/internal/git/command_description.go index 6ca1ce76c..415340b78 100644 --- a/internal/git/command_description.go +++ b/internal/git/command_description.go @@ -243,6 +243,9 @@ var commandDescriptions = map[string]commandDescription{ // We cannot use --end-of-options here because pseudo revisions like `--all` // and `--not` count as options. flags: scNoRefUpdates | scNoEndOfOptions, + opts: append(append([]GlobalOption{ + ConfigPair{Key: "core.alternateRefsCommand", Value: "exit 0 #"}, + })), validatePositionalArgs: func(args []string) error { for _, arg := range args { // git-rev-list(1) supports pseudo-revision arguments which can be |