diff options
| author | Anton Medvedev <anton@medv.io> | 2025-12-07 16:56:52 +0100 |
|---|---|---|
| committer | Anton Medvedev <anton@medv.io> | 2025-12-07 16:56:52 +0100 |
| commit | 1441fb29d93481f7bea76bbfa2a9f289ed1ac4f0 (patch) | |
| tree | 6d01f974638c519780406f67158c9160cf06e7cc /commit.go | |
| parent | 20a5d07b2a4620ace14c6a5f622ca45e27f9c20d (diff) | |
Refactor code by introducing `Ref` type
Diffstat (limited to 'commit.go')
| -rw-r--r-- | commit.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -230,7 +230,7 @@ func generateCommitPage(commit git.Commit, params Params) error { }) currentRef := params.DefaultRef - if commit.Branch != "" { + if !commit.Branch.IsEmpty() { currentRef = commit.Branch } |
