From 932057fb7bb57d5722500a51435ad26429e44a59 Mon Sep 17 00:00:00 2001 From: huaixv <44743118+huaixv@users.noreply.github.com> Date: Fri, 24 Jun 2022 22:07:46 +0800 Subject: [PATCH] fix: handle revision and pathspec of same name --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ee4a048..60bc04b 100644 --- a/Makefile +++ b/Makefile @@ -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)