diff options
| author | Jeff Carr <[email protected]> | 2024-02-16 17:55:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-16 17:55:13 -0600 |
| commit | 0b4f4d76866ccc500112cfe553240c47961258e2 (patch) | |
| tree | 5b68ef32ea6dab46b0aa3c7c522f4852b62bfcd3 /gitConfig.go | |
| parent | bd62a89a670eab24ff5fd7b1ed155b89dde08157 (diff) | |
ready to work on creating branches
Diffstat (limited to 'gitConfig.go')
| -rw-r--r-- | gitConfig.go | 9 |
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) } |
