fix(ci): push-all.sh 提示文案改为 HTTPS、base64 兼容 CRLF
- Windows Git Bash 的 base64 可能带 \r,Basic 头会因此校验失败,改为 tr -d '\r\n' - 推送提示仍写 http://,与已切换的 HTTPS 远端不一致,改正
这个提交包含在:
+2
-2
@@ -29,8 +29,8 @@ IMAGE="$HOST/$USER/$REPO"
|
|||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
# ---------- 1. 推代码 ----------
|
# ---------- 1. 推代码 ----------
|
||||||
echo "==> 推送代码到 http://$HOST/$USER/$REPO.git ($BRANCH)"
|
echo "==> 推送代码到 https://$HOST/$USER/$REPO.git ($BRANCH)"
|
||||||
AUTH="$(printf '%s:%s' "$USER" "$GITEA_TOKEN" | base64 | tr -d '\n')"
|
AUTH="$(printf '%s:%s' "$USER" "$GITEA_TOKEN" | base64 | tr -d '\r\n')"
|
||||||
git -c credential.helper= \
|
git -c credential.helper= \
|
||||||
-c http.extraHeader="Authorization: Basic $AUTH" \
|
-c http.extraHeader="Authorization: Basic $AUTH" \
|
||||||
push -u origin "$BRANCH"
|
push -u origin "$BRANCH"
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户