diff --git a/scripts/sync-upstream.sh b/scripts/sync-upstream.sh index 9ae3009..40623a9 100755 --- a/scripts/sync-upstream.sh +++ b/scripts/sync-upstream.sh @@ -73,7 +73,7 @@ case "$MODE" in git -c user.name=qiqi -c user.email=qiqi@local commit -q \ -m "chore(sync): 重放桌面侧差异到上游 $(git rev-parse --short "$NEW")" echo "" - echo "同步完成,改动已提交在 sync/$STAMP。核对后执行:$0 --finish" + echo "同步完成,改动已提交在 sync/${STAMP}。核对后执行:$0 --finish" fi exit 0 ;; @@ -88,8 +88,8 @@ case "$MODE" in fi TARGET="${TARGET_BRANCH:-main}" git checkout -q "$TARGET" - git -c user.name=qiqi -c user.email=qiqi@local merge --no-ff -m "chore(sync): 合入 $CUR(上游 $(git rev-parse --short "$REMOTE/$BRANCH"))" "$CUR" - git tag -f "$BASE_TAG" HEAD~0 >/dev/null # 基线标记前移到本次合并提交 + git -c user.name=qiqi -c user.email=qiqi@local merge --no-ff -m "chore(sync): 合入 ${CUR}(上游 $(git rev-parse --short "$REMOTE/$BRANCH"))" "$CUR" + git tag -f "$BASE_TAG" HEAD >/dev/null # 基线标记前移到本次合并提交 git rev-parse "$REMOTE/$BRANCH" | tr -d '\n' > .upstream-base git add .upstream-base git -c user.name=qiqi -c user.email=qiqi@local commit -q -m "chore(sync): 上游基线推进到 $(git rev-parse --short "$REMOTE/$BRANCH")"