diff options
| author | Jeff Carr <[email protected]> | 2025-09-13 05:33:31 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-13 05:33:31 -0500 |
| commit | 2a47f1e547d2cda3d85d5e6c8c78a663b139fc9f (patch) | |
| tree | 430df61927de88fcc1be5dfeb7a05e224b30661f /currentVersions.go | |
| parent | 719287c3bfa349c74c2ce86b01299c97169ec3a8 (diff) | |
cleaning up obscure git casesv0.0.127
Diffstat (limited to 'currentVersions.go')
| -rw-r--r-- | currentVersions.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/currentVersions.go b/currentVersions.go index fdedb74..48563f9 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -38,7 +38,6 @@ func (repo *Repo) setMasterVersion() { repo.MasterVersion = v } else { log.Log(WARN, "gitpb.GitMasterVersion() error:", err) - repo.MasterVersion = "giterr" } } @@ -134,11 +133,11 @@ func (repo *Repo) gitVersionByName(name string) (string, error) { if name == "" { // git will return the current tag - r, err := repo.RunQuiet([]string{"git", "describe", "--tags"}) + cmd := []string{"git", "describe", "--tags"} + r, err := repo.RunQuiet(cmd) output := strings.Join(r.Stdout, "\n") if err != nil { - log.Log(WARN, "gitDescribeByName() output might have worked anyway:", output) - log.Log(WARN, "gitDescribeByName() not in a git repo?", err, repo.GetGoPath()) + log.Log(WARN, repo.FullPath, "gitDescribeByName() ", output, err, cmd) return "", err } return strings.TrimSpace(output), nil |
