From fd0f84d6b8b1c6112c0933dda446d2947fc9540a Mon Sep 17 00:00:00 2001 From: zhi Date: Fri, 17 Apr 2026 20:15:55 +0000 Subject: [PATCH] fix: run repo config before fetch in get-latest update path Ensures credentials are configured when updating an existing repo, not just when cloning a new one. Co-Authored-By: Claude Opus 4.6 (1M context) --- git-hangman-lab/scripts/repo | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git-hangman-lab/scripts/repo b/git-hangman-lab/scripts/repo index 9fbd63b..b7e842a 100755 --- a/git-hangman-lab/scripts/repo +++ b/git-hangman-lab/scripts/repo @@ -338,6 +338,8 @@ do_get_latest() { git -C "$REPO_DIR" checkout -- . 2>/dev/null || true fi + do_config --repo-path "$REPO_DIR" + echo "Fetching: $REPO_NAME ($BRANCH)" git -C "$REPO_DIR" fetch origin "$BRANCH" 2>/dev/null || true git -C "$REPO_DIR" checkout "$BRANCH" 2>/dev/null || git -C "$REPO_DIR" checkout -b "$BRANCH" "origin/$BRANCH" 2>/dev/null || true