feat: link a shared team from a git URL - #10
Merged
Merged
Conversation
Record LinkURL/LinkRef/LinkSHA for remote git links. SetRemoteLink writes them; SetLink and ClearLink clear remote metadata.
Add LinksCacheDir, LooksLikeGit, EnsureRemoteCheckout, and SyncRemoteCheckout. Tests use a local bare git repo as the remote.
Uh oh!
There was an error while loading. Please reload this page.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
squad-oc linkonly accepted a local directory. Two laptops, or a new service repo, could not share a platform team unless someone cloned it first and passed the path.What
squad-oc link <git-url>clones or fetches into~/.squad-oc/links/<hash>/and points this repo at that checkoutlinkPathpluslinkUrl,linkRef, andlinkShalink --sync(or re-running the same URL) fetches and updates the SHAlink --offrestores local.squad/; the cache stays on disklinkis unchanged and still exclusive withexternalizestatus/doctor/mcp applykeep usingResolveDirhttps /
git@/*.gitURLs are accepted. A local path that already hasteam.mdstays a path link.Tests
Local bare git remotes only — no network.
go test ./...andgo buildpass in the worktree.Closes agent work: squad-l3t, squad-l3t.1, squad-l3t.2