Fix - in commit

This commit is contained in:
Tim Pope
2012-04-07 16:23:49 -04:00
parent 9619055cfd
commit b72bb7b289

View File

@@ -545,7 +545,7 @@ function! s:buffer_up(...) dict abort
let rev = 'HEAD'
elseif rev =~# '^:'
let rev = ':'
elseif rev =~# '^[^^~:]\+$'
elseif rev =~# '^refs/[^^~:]*$\|^[^^~:]*HEAD$'
let rev .= '^{}'
elseif rev =~# '^/\|:.*/'
let rev = s:sub(rev, '.*\zs/.*', '')