aboutsummaryrefslogtreecommitdiffstats
path: root/repository/mock_repo.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-19 13:58:55 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-19 13:58:55 +0200
commitb58812136e404434ac01612cb4a573881f45eb55 (patch)
tree5039d3bc82190f3b4a836950d742ccb781917542 /repository/mock_repo.go
parent71523f23edcb02a94061941b45f24a1f1ea4231b (diff)
downloadgit-bug-b58812136e404434ac01612cb4a573881f45eb55.tar.gz
bug: remove use of the too recent %(refname:lstrip=-1) of git
fix #24
Diffstat (limited to 'repository/mock_repo.go')
-rw-r--r--repository/mock_repo.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/repository/mock_repo.go b/repository/mock_repo.go
index 20fb3d87..50907876 100644
--- a/repository/mock_repo.go
+++ b/repository/mock_repo.go
@@ -3,7 +3,6 @@ package repository
import (
"crypto/sha1"
"fmt"
- "strings"
"github.com/MichaelMure/git-bug/util"
)
@@ -140,21 +139,6 @@ func (r *mockRepoForTest) ListRefs(refspec string) ([]string, error) {
return keys, nil
}
-// ListIds will return a list of Git ref matching the given refspec,
-// stripped to only the last part of the ref
-func (r *mockRepoForTest) ListIds(refspec string) ([]string, error) {
- keys := make([]string, len(r.refs))
-
- i := 0
- for k := range r.refs {
- splitted := strings.Split(k, "/")
- keys[i] = splitted[len(splitted)-1]
- i++
- }
-
- return keys, nil
-}
-
func (r *mockRepoForTest) ListCommits(ref string) ([]util.Hash, error) {
var hashes []util.Hash