Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <psteinhardt@gitlab.com>2021-07-16 13:14:05 +0300
committerPatrick Steinhardt <psteinhardt@gitlab.com>2021-07-19 15:55:18 +0300
commitf1318d71e2c77142072c4872338f8d8301710ed1 (patch)
treefa9fefdd80c24717d52688f534474ec91fe8a4fc
parent533c796e16a10eb07f19ee0277718aa334bff2b7 (diff)
gitpipe: Use ValueFlag to pass value flags
We're misusing a `git.Flag` structure to pass a value flag. Convert the code to use a `git.ValueFlag` instead.
-rw-r--r--internal/git/gitpipe/revision.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/git/gitpipe/revision.go b/internal/git/gitpipe/revision.go
index c738b82eb..6cd576f50 100644
--- a/internal/git/gitpipe/revision.go
+++ b/internal/git/gitpipe/revision.go
@@ -318,7 +318,7 @@ func ForEachRef(
// us to read the referenced commit's object. It would thus be about
// 2-3x slower to use the default format, and instead we move the
// burden into the next pipeline step.
- git.Flag{Name: "--format=%(objectname) %(refname)"},
+ git.ValueFlag{Name: "--format", Value: "%(objectname) %(refname)"},
},
Args: patterns,
})