diff options
| author | Jeff Carr <[email protected]> | 2024-12-07 16:50:26 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-07 16:50:26 -0600 |
| commit | cb04f3585c1abe95f6bddfa282e829896c2bb19a (patch) | |
| tree | 782b14c818e267d23daeb797975777f12279a0af /currentVersions.go | |
| parent | 945ae6329b7e4e46e409027984253e358ee87260 (diff) | |
debugging switching go/src dirsv0.0.27
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 { |
