Skip to content

Commit d5c0571

Browse files
committed
Explicitly match the .git/ directory path
Otherwise, this pattern would match files that are `.git`-prefixed, such as `.git-blame-ignore-revs`.
1 parent 065c7e3 commit d5c0571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/phabricator.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ function! phabricator#fugitive_url(...) abort
170170
return root . '/history/' . path[16:-1]
171171
elseif path =~# '^\.git/refs/tags/'
172172
return root . '/history/;' . path[15:-1]
173-
elseif path =~# '^\.git\>'
173+
elseif path =~# '^\.git/'
174174
return root
175175
endif
176176
let branch = substitute(FugitiveHead(), '/', '%252F7', 'g')

0 commit comments

Comments
 (0)