Skip to content

fix(git/fetch): report a fetch/skip summary instead of raw errors - #732

Merged
credfeto merged 2 commits into
mainfrom
fix/git-fetch-skip-summary
Jul 26, 2026
Merged

fix(git/fetch): report a fetch/skip summary instead of raw errors#732
credfeto merged 2 commits into
mainfrom
fix/git-fetch-skip-summary

Conversation

@dnyw4l3n13

@dnyw4l3n13 dnyw4l3n13 commented Jul 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • The fetch script already skips a repo it can't reach (e.g. no publickey access) via continue, but the raw git/ssh failure text printed to the terminal made a normal skip look like a crash.
  • Redirects each origin/fetch/update-check's stdout+stderr to /dev/null, keeping the existing warn message as the only output on failure.
  • Switches the main loop to read the repo list from a temp file instead of a pipe, so per-run counters aren't lost in a subshell.
  • Prints a final summary line (N repo(s) fetched, M repo(s) skipped) plus the list of skipped repos with reasons.

Test plan

  • shellcheck -s sh git/fetch passes
  • pre-commit hook passes on the branch

A repo the script can't fetch (e.g. no publickey access) already gets
skipped via `continue`, but the raw git/ssh failure text printed to
the terminal made it look like the whole run had crashed rather than
just moving on. Quiet that output and instead read the repo list from
a temp file (a plain pipe would have run the loop in a subshell,
losing any counters) so the run can report a final summary: how many
repos were fetched, how many were skipped, and why.
@dnyw4l3n13 dnyw4l3n13 added the auto-pr Pull request created automatically label Jul 26, 2026
@credfeto
credfeto marked this pull request as ready for review July 26, 2026 22:25
Copilot AI review requested due to automatic review settings July 26, 2026 22:25
@credfeto
credfeto enabled auto-merge July 26, 2026 22:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@credfeto

Copy link
Copy Markdown
Owner

Super-linter summary

Language Validation result
BASH Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter

@credfeto
credfeto merged commit 169d073 into main Jul 26, 2026
39 checks passed
@credfeto
credfeto deleted the fix/git-fetch-skip-summary branch July 26, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-pr Pull request created automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants