Skip to content

fix: fail-fast remote link and print SHA without ref - #14

Merged
xeaser merged 1 commit into
mainfrom
fix/remote-link-polish
Aug 24, 2026
Merged

fix: fail-fast remote link and print SHA without ref#14
xeaser merged 1 commit into
mainfrom
fix/remote-link-polish

Conversation

@xeaser

Copy link
Copy Markdown
Owner

What

Remote-link polish from squad-l3t review (squad-xzl).

  • Reject uninitialized and already-externalized projects beforeEnsureRemoteCheckout, so a failed link does not leave a clone in ~/.squad-oc/links.
  • share.looksLikeGit now calls squad.LooksLikeGit (same rule as pack/upstream).
  • status prints the link SHA even when LinkRef is empty (detached / default-branch checkout).

How to test

  • go test ./...
  • Docs updated if a user-visible command or flag changed (no new command/flag)

Checklist

  • Commits are signed (required on the default branch)
  • No secrets, no .opencode/node_modules
  • Does not add Copilot, Ink shell, Aspire, or npm install

Reject uninitialized or externalized projects before cloning a git team
URL. Share LooksLikeGit with pack/upstream, and print status SHA when
LinkRef is empty.
@xeaser
xeaser merged commit 815a177 into mainAug 24, 2026
10 checks passed
@xeaser
xeaser deleted the fix/remote-link-polish branch August 24, 2026 12:30
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@xeaser