Merge pull request #4 from huaixv/ysyx2204
fix: handle revision and pathspec of same name
This commit is contained in:
commit
3fc57bcc5a
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -15,7 +15,7 @@ LOCK_DIR = $(YSYX_HOME)/.git/
|
||||||
|
|
||||||
# prototype: git_soft_checkout(branch)
|
# prototype: git_soft_checkout(branch)
|
||||||
define git_soft_checkout
|
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
|
endef
|
||||||
|
|
||||||
# prototype: git_commit(msg)
|
# prototype: git_commit(msg)
|
||||||
|
|
Loading…
Reference in a new issue