From 82a8080af44194b3da3acd06aff60e3071b55adf Mon Sep 17 00:00:00 2001 From: tracer-ysyx Date: Sat, 6 Jan 2024 00:47:48 +0800 Subject: [PATCH] =?UTF-8?q?>=20Build=20=20ysyx=5F22040000=20=E6=9D=8E?= =?UTF-8?q?=E5=BF=83=E6=9D=A8=20=20Linux=20calcite=206.1.69=20#1-NixOS=20S?= =?UTF-8?q?MP=20PREEMPT=5FDYNAMIC=20Wed=20Dec=2020=2016:00:29=20UTC=202023?= =?UTF-8?q?=20x86=5F64=20GNU/Linux=20=20=2000:47:48=20=20up=201=20day=20?= =?UTF-8?q?=209:34,=20=202=20users,=20=20load=20average:=202.56,=201.07,?= =?UTF-8?q?=200.65?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git_commit.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git_commit.sh b/git_commit.sh index be8b423..17378e7 100755 --- a/git_commit.sh +++ b/git_commit.sh @@ -10,11 +10,12 @@ STUNAME=李心杨 TRACER=tracer-ysyx GITFLAGS="-q --author=$TRACER --no-verify --allow-empty" +YSYX_HOME=$NEMU_HOME/.. WORK_BRANCH=$(git rev-parse --abbrev-ref HEAD) -WORK_INDEX=.git/index.${WORK_BRANCH} +WORK_INDEX=$YSYX_HOME/.git/index.${WORK_BRANCH} TRACER_BRANCH=$TRACER -LOCK_DIR=.git/ +LOCK_DIR=$YSYX_HOME/.git/ git_soft_checkout () { git checkout --detach -q && git reset --soft $1 -q -- && git checkout $1 -q -- ;