fix: stop forcing .git suffix on HTTP(S) clone URLs #31
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rtlabs-llm-agents/agent-skills-cli!31
Loading…
Reference in a new issue
No description provided.
Delete branch "nicostoppel/main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
git's smart-HTTP protocol has no requirement for a .git suffix — it's a hosting-provider convention, not a git spec rule. Forcing it broke Azure DevOps (org/project/_git/repo) and would similarly break AWS CodeCommit and GCP Source Repositories, none of which use the suffix. Passing the URL through unchanged works for every host, forced suffixing only worked for GitHub/GitLab/Bitbucket-style hosts.
Type of Change
Testing
npm run buildpassesskills --helpChecklist
Summary by CodeRabbit
.gitsuffix.📝 Walkthrough
Walkthrough
normalizeGitUrlno longer appends.gitto HTTP(S) URLs. It preserves the existing path, retains SSH handling, and still addshttps://when no protocol is present.Changes
Git URL normalization
src/core/git-auth.tsnormalizeGitUrlpreserves HTTP(S) paths without adding.git. SSH URLs and protocol normalization remain supported. The function documentation reflects the updated behavior.Estimated code review effort: 2 (Simple) | ~10 minutes
Merge Risk: ⚪ Minimal · up to
c4399The change preserves HTTP(S) clone URLs instead of forcing a
.gitsuffix, supporting providers that use suffix-less paths. No actionable merge-blocking risk remains.🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.🧹 Nitpick comments (1)
🤖 Prompt for all review comments with AI agents
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID:
8418403d-7072-49a4-96e7-0869fb225371📥 Commits
Reviewing files that changed from the base of the PR and between
956140bfceandc4399e1bdd.📒 Files selected for processing (1)
src/core/git-auth.tsIncluded review availability: Your plan provides up to 2 included reviews per hour; 1 remains after this review.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.