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:
Junegunn Choi committed 2017-02-26 03:35:45 +09:00
1 parent e3252aae2c
commit 769192d3d0
4 files changed
+20 -5

No files matched your search

+2
View File
@@ -95,6 +95,8 @@ DOC
echo 'let g:foo = 1' > plugin/foo.vim
git add plugin/foo.vim
git commit -m initial
git checkout -b plugin
git checkout master
cd "$BASE"
}