fix: handle revision and pathspec of same name

This commit is contained in:
huaixv 2022-06-24 22:07:46 +08:00
parent e8e7213cd6
commit 932057fb7b

View file

@ -15,7 +15,7 @@ LOCK_DIR = $(YSYX_HOME)/.git/
# prototype: git_soft_checkout(branch)
define git_soft_checkout
git checkout --detach -q && git reset --soft $(1) -q && git checkout $(1) -q
git checkout --detach -q && git reset --soft $(1) -q -- && git checkout $(1) -q --
endef
# prototype: git_commit(msg)