diff options
Diffstat (limited to 'currentVersions.go')
| -rw-r--r-- | currentVersions.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/currentVersions.go b/currentVersions.go index 4e9d843..b9329f6 100644 --- a/currentVersions.go +++ b/currentVersions.go @@ -86,6 +86,10 @@ func (repo *Repo) GetCurrentBranchName() string { } func (repo *Repo) GetCurrentBranchVersion() string { + if repo == nil { + log.Info("repo.GetCurrentBranchVersion() repo == nil") + return "" + } r := repo.RunQuiet([]string{"git", "describe", "--tags", "--always"}) output := strings.Join(r.Stdout, "\n") if r.Error != nil { |
