Make Module 8 verify-backup.sh fail fast instead of hanging on an HTTPS credential prompt #38
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The script's clone runs
git clone --quiet "$remote_url" "$tmp/clone" 2>/dev/null. For learners on the HTTPS+PAT path with a private repo and no cached credential helper (common fresh-Linux state), git prompts for credentials on the tty and blocks; because the script discards stderr the experience is a hang rather than falling into the existing graceful warn branch. This affects the lab's headline PASS check.Evidence
modules/08-remotes-and-hosting/lab/verify-backup.shline 71:if git clone --quiet "$remote_url" "$tmp/clone" 2>/dev/null; then.GIT_TERMINAL_PROMPTis not set; the script has a graceful warn branch (~line 88: "Couldn't clone … auth or network?").Why it matters
A silent hang at the lab's headline check defeats the script's intended graceful failure. (Note: git writes credential prompts to /dev/tty, so the prompt isn't fully hidden — the real defect is the blocking, not "silent.")
Proposed change
if GIT_TERMINAL_PROMPT=0 git clone ….Acceptance criteria
Affected files
modules/08-remotes-and-hosting/lab/verify-backup.sh,modules/08-remotes-and-hosting/README.md(optional note)References
Source finding F21 (realVotes 3/3).
Filed from an adversarial multi-agent course review (217 raw findings → 54 adversarially-verified survivors). Scoped for manual review; intentionally not auto-assigned to an agent.