summaryrefslogtreecommitdiff
path: root/branches.go
diff options
context:
space:
mode:
Diffstat (limited to 'branches.go')
-rw-r--r--branches.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/branches.go b/branches.go
index 1c923dd..e6d0570 100644
--- a/branches.go
+++ b/branches.go
@@ -114,7 +114,7 @@ func (repo *Repo) GetHashName(h string) (string, error) {
h = strings.TrimSpace(h)
log.Info("GetHashName() is looking for", repo.GetGoPath(), h)
cmd := []string{"git", "describe", "--tags", h}
- r, err := repo.RunStrictNew(cmd)
+ r, err := repo.RunStrict(cmd)
if err != nil {
return "", err
}
@@ -128,7 +128,7 @@ func (repo *Repo) GetHashName(h string) (string, error) {
func (repo *Repo) GetTagHash(t string) string {
// git rev-list -n 1 v0.0.66
cmd := []string{"git", "rev-list", "-n", "1", t}
- result, _ := repo.RunStrictNew(cmd)
+ result, _ := repo.RunStrict(cmd)
// log.Info("getLastTagVersion()", result.Stdout)
if len(result.Stdout) == 0 {