Merge pull request #4 from huaixv/ysyx2204

fix: handle revision and pathspec of same name
This commit is contained in:
Zihao Yu 2022-06-24 22:48:18 +08:00 committed by GitHub
commit 3fc57bcc5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)