summaryrefslogtreecommitdiff
path: root/reload.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-08 03:13:09 -0600
committerJeff Carr <[email protected]>2025-01-08 03:13:09 -0600
commitb0fca659c57dd2cb6a88a74d1a349117a3908124 (patch)
treed1e43473858cead9872a4652aaaeed85dd2afd38 /reload.go
parentebda2ea222ed9f1d348d5d3e0cffb9c9f9c0acec (diff)
fix the dumb names
Diffstat (limited to 'reload.go')
-rw-r--r--reload.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/reload.go b/reload.go
index 5329561..3ac55c1 100644
--- a/reload.go
+++ b/reload.go
@@ -48,7 +48,7 @@ func (repo *Repo) setLastTag() {
// log.Info("getLastTagVersion()", result.Stdout)
if len(result.Stdout) != 1 {
- log.Log(GITPBWARN, "git LastTag() error:", result.Stdout)
+ log.Log(WARN, "git LastTag() error:", result.Stdout)
repo.LastTag = ""
return
}
@@ -59,7 +59,7 @@ func (repo *Repo) setLastTag() {
result = repo.RunQuiet(cmd)
if len(result.Stdout) != 1 {
- log.Log(GITPBWARN, "git LastTag() error:", result.Stdout)
+ log.Log(WARN, "git LastTag() error:", result.Stdout)
repo.LastTag = ""
return
}
@@ -72,8 +72,8 @@ func (repo *Repo) setCurrentBranchName() {
r := repo.RunQuiet([]string{"git", "branch", "--show-current"})
output := strings.Join(r.Stdout, "\n")
if r.Error != nil {
- log.Log(GITPBWARN, "GetCurrentBranchName() not in a git repo?", r.Error, repo.GetGoPath())
- log.Log(GITPBWARN, "GetCurrentBranchName() output might have worked anyway:", output)
+ log.Log(WARN, "GetCurrentBranchName() not in a git repo?", r.Error, repo.GetGoPath())
+ log.Log(WARN, "GetCurrentBranchName() output might have worked anyway:", output)
}
repo.CurrentBranchName = strings.TrimSpace(output)
}
@@ -88,8 +88,8 @@ func (repo *Repo) setCurrentBranchVersion() {
r := repo.RunQuiet([]string{"git", "describe", "--tags", "--always"})
output := strings.Join(r.Stdout, "\n")
if r.Error != nil {
- log.Log(GITPBWARN, "GetCurrentBranchVersion() not in a git repo?", r.Error, repo.GetGoPath())
- log.Log(GITPBWARN, "GetCurrentBranchVersion() output might have worked anyway:", output)
+ log.Log(WARN, "GetCurrentBranchVersion() not in a git repo?", r.Error, repo.GetGoPath())
+ log.Log(WARN, "GetCurrentBranchVersion() output might have worked anyway:", output)
}
repo.CurrentBranchVersion = strings.TrimSpace(output)
}