diff options
Diffstat (limited to 'reload.go')
| -rw-r--r-- | reload.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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) } |
