aboutsummaryrefslogtreecommitdiffstats
path: root/repository/git.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-09-09 20:17:12 +0200
committerMichael Muré <batolettre@gmail.com>2018-09-09 20:17:12 +0200
commit30d4bc2121496f333db1a918190339d2bcf22f17 (patch)
treebbffb4216e7dc0e701e621d4df0369825a69ee7a /repository/git.go
parent13797c3b77b9e44860b47d381c9451d8ab70b14d (diff)
downloadgit-bug-30d4bc2121496f333db1a918190339d2bcf22f17.tar.gz
fix english grammar
Diffstat (limited to 'repository/git.go')
-rw-r--r--repository/git.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/repository/git.go b/repository/git.go
index c5dc5618..9b5aebb5 100644
--- a/repository/git.go
+++ b/repository/git.go
@@ -248,13 +248,13 @@ func (repo *GitRepo) ListRefs(refspec string) ([]string, error) {
return nil, err
}
- splitted := strings.Split(stdout, "\n")
+ split := strings.Split(stdout, "\n")
- if len(splitted) == 1 && splitted[0] == "" {
+ if len(split) == 1 && split[0] == "" {
return []string{}, nil
}
- return splitted, nil
+ return split, nil
}
// RefExist will check if a reference exist in Git
@@ -283,10 +283,10 @@ func (repo *GitRepo) ListCommits(ref string) ([]util.Hash, error) {
return nil, err
}
- splitted := strings.Split(stdout, "\n")
+ split := strings.Split(stdout, "\n")
- casted := make([]util.Hash, len(splitted))
- for i, line := range splitted {
+ casted := make([]util.Hash, len(split))
+ for i, line := range split {
casted[i] = util.Hash(line)
}