Skip to content

Commit c8731b5

Browse files
committed
Only hexify branch name if it's not nil.
1 parent 0acdfd6 commit c8731b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-link.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,9 @@ With a double prefix argument invert the value of
861861
(not git-link-use-commit)
862862
git-link-use-commit))
863863
nil
864-
(url-hexify-string branch))
864+
(if branch
865+
(url-hexify-string branch)
866+
nil))
865867
commit
866868
start
867869
end))))))))

0 commit comments

Comments
 (0)