Fix branch and revision

This commit is contained in:
Yasuhiro Matsumoto 2020-08-30 23:59:38 +09:00
parent 0e9ac7fd20
commit 5a7dd51395
No known key found for this signature in database
GPG Key ID: 622DE34DC490584B

View File

@ -193,6 +193,7 @@ function! s:git_get_revision(dir) abort
endif endif
endfor endfor
endif endif
return l:line
catch catch
endtry endtry
return '' return ''
@ -208,7 +209,7 @@ function! s:git_get_branch(dir) abort
if l:line =~# '^ref: refs/heads/' if l:line =~# '^ref: refs/heads/'
return l:line[16:] return l:line[16:]
endif endif
return '' return 'HEAD'
catch catch
return '' return ''
endtry endtry