fix: ensure reset works with local modifications

This commit is contained in:
2026-08-01 20:15:43 -04:00
parent 425ed8a59d
commit d03a678e6e
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -182,7 +182,7 @@ update_repo() {
local old_sha
old_sha=$(git rev-parse HEAD)
git fetch origin &>/dev/null && git reset --hard origin/master &>/dev/null && git clean -fd &>/dev/null
git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' "$old_sha"..HEAD
git log --format='%C(yellow)%h%C(reset) %C(cyan)%ar%C(reset) %s' -10
else
info "Repository not found. Cloning..."
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null