summaryrefslogtreecommitdiff
path: root/commit.go
diff options
context:
space:
mode:
Diffstat (limited to 'commit.go')
-rw-r--r--commit.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.go b/commit.go
index 571c8e2..ef18913 100644
--- a/commit.go
+++ b/commit.go
@@ -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
}