summaryrefslogtreecommitdiff
path: root/gitConfig.go
diff options
context:
space:
mode:
Diffstat (limited to 'gitConfig.go')
-rw-r--r--gitConfig.go9
1 files changed, 3 insertions, 6 deletions
diff --git a/gitConfig.go b/gitConfig.go
index 9fc4737..2f70773 100644
--- a/gitConfig.go
+++ b/gitConfig.go
@@ -269,10 +269,7 @@ func (rs *RepoStatus) processBranch(branch string) {
}
}
- var cmd []string
- cmd = append(cmd, "git", "describe", "--tags", newhash)
- _, _, output := RunCmd(rs.realPath.String(), cmd)
- output = strings.TrimSpace(output)
- rs.gitConfig.versions[newhash] = output
- log.Log(INFO, " hash: version", output)
+ name, _ := rs.gitDescribeByHash(newhash)
+ rs.gitConfig.versions[newhash] = name
+ log.Log(INFO, " hash: version", name)
}