mirror of
https://github.com/junegunn/vim-plug.git
synced 2025-12-07 17:44:25 +08:00
Append -- to git checkout commands
Checking out a branch or tag may not succeed if there is a path entry with the same name. This commit appends -- to git checkout commands to clarify that we're not referring to a file or a directory. Close #602
This commit is contained in:
@@ -1473,7 +1473,7 @@ Execute (Commit hash support):
|
||||
PlugUpdate
|
||||
Log getline(1, '$')
|
||||
AssertEqual 'x goyo.vim:', getline(5)
|
||||
AssertEqual ' error: pathspec ''ffffffff'' did not match any file(s) known to git.', getline(6)
|
||||
AssertEqual ' fatal: invalid reference: ffffffff', getline(6)
|
||||
AssertEqual 0, stridx(getline(7), '- vim-emoji: HEAD is now at 9db7fcf...')
|
||||
|
||||
let hash = system(printf('cd %s && git rev-parse HEAD', g:plugs['vim-emoji'].dir))[:-2]
|
||||
|
||||
Reference in New Issue
Block a user