Skip to content

fix(cc-catalog-svc): accept git smart HTTP paths without .git suffix#124

Merged
stewartshea merged 2 commits into
mainfrom
fix/cc-catalog-git-url-without-dot-git
Jun 23, 2026
Merged

fix(cc-catalog-svc): accept git smart HTTP paths without .git suffix#124
stewartshea merged 2 commits into
mainfrom
fix/cc-catalog-git-url-without-dot-git

Conversation

@stewartshea

Copy link
Copy Markdown
Contributor

Summary

  • Makes the git smart HTTP router accept clone URLs with or without the .git path suffix (e.g. /git/rw-cli-codecollection/info/refs in addition to /git/rw-cli-codecollection.git/info/refs).
  • Rewrites PATH_INFO to /{slug}.git{rest} before delegating to git http-backend, since bare repos on disk keep the .git directory name.
  • Adds tests covering info/refs and git ls-remote against the no-suffix URL form.

Fixes airgap workspace indexing failures where sobow calls git ls-remote against URLs like http://<release>-cc-catalog-svc:8080/git/rw-cli-codecollection (platform normalizes repo URLs by stripping .git, matching GitHub/GitLab behavior).

Test plan

  • poetry run pytest cc-catalog-svc/tests/test_git_http.py -v (10 passed)
  • After image release: from a platform pod, git ls-remote --heads --tags http://<release>-cc-catalog-svc:8080/git/rw-cli-codecollection returns refs
  • Re-trigger workspace index rebuild and confirm task_rebuild_workspace_index succeeds

Made with Cursor

Platform sobow/gitget calls git ls-remote with repo URLs that omit the
.git suffix (matching GitHub/GitLab behavior). Rewrite PATH_INFO to the
bare-repo form git http-backend expects so airgap catalog clones work.

Co-authored-by: Cursor <cursoragent@cursor.com>
@github-actions

Copy link
Copy Markdown

cc-catalog-svc image

Tag: fix-cc-catalog-git-url-without-dot-git124-merge-10de491e
Build: success

Image Tag
cc-catalog-svc fix-cc-catalog-git-url-without-dot-git124-merge-10de491e
us-docker.pkg.dev/runwhen-nonprod-shared/public-images/cc-catalog-svc:fix-cc-catalog-git-url-without-dot-git124-merge-10de491e

@github-actions

Copy link
Copy Markdown

cc-catalog-svc image

Tag: fix-cc-catalog-git-url-without-dot-git124-merge-e79c15aa
Build: success

Image Tag
cc-catalog-svc fix-cc-catalog-git-url-without-dot-git124-merge-e79c15aa
us-docker.pkg.dev/runwhen-nonprod-shared/public-images/cc-catalog-svc:fix-cc-catalog-git-url-without-dot-git124-merge-e79c15aa

@stewartshea stewartshea merged commit 41df48e into main Jun 23, 2026
4 checks passed
@stewartshea stewartshea deleted the fix/cc-catalog-git-url-without-dot-git branch June 23, 2026 04:00
Sign up for free to 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