diff options
author | Michael Muré <batolettre@gmail.com> | 2020-09-08 14:31:40 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-09-29 20:42:21 +0200 |
commit | d4f1d5659b9d23ff0768ed584ae320cb657c6f2d (patch) | |
tree | 0a076c74910690330438e6437ec6b58c437cc2b2 /repository/git.go | |
parent | bde93756321b7a5eb0ec013e059914528b7c2610 (diff) | |
download | git-bug-d4f1d5659b9d23ff0768ed584ae320cb657c6f2d.tar.gz git-bug-d4f1d5659b9d23ff0768ed584ae320cb657c6f2d.zip |
repo: fix some go-git implementation
Diffstat (limited to 'repository/git.go')
-rw-r--r-- | repository/git.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/git.go b/repository/git.go index 85107ba5a..37b79556e 100644 --- a/repository/git.go +++ b/repository/git.go @@ -302,8 +302,8 @@ func (repo *GitRepo) RemoveRef(ref string) error { } // ListRefs will return a list of Git ref matching the given refspec -func (repo *GitRepo) ListRefs(refspec string) ([]string, error) { - stdout, err := repo.runGitCommand("for-each-ref", "--format=%(refname)", refspec) +func (repo *GitRepo) ListRefs(refPrefix string) ([]string, error) { + stdout, err := repo.runGitCommand("for-each-ref", "--format=%(refname)", refPrefix) if err != nil { return nil, err |