Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugin/to-github.vim
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function! ToGithub(count, line1, line2, ...)
endif

" Get the commit and path, and form the complete url.
let commit = s:run('git show-ref --hash HEAD')
let commit = s:run('git rev-parse HEAD')
let repo_root = s:run('git rev-parse --show-toplevel')
let file_path = bufname('%')
let file_path = substitute(file_path, repo_root . '/', '', 'e')
Expand Down