Skip to content

Conversation

@krancour
Copy link
Member

@krancour krancour commented Nov 5, 2025

Fixes #5344

Internally, implementations of git.Repo hang on to URLs that often contain @username, but callers of the URL() method rightfully expect it to return the original URL that was provided to the git.Clone() or git.CloneBare() function.

@krancour krancour added this to the v1.8.4 milestone Nov 5, 2025
@krancour krancour self-assigned this Nov 5, 2025
@krancour krancour requested a review from a team as a code owner November 5, 2025 16:40
@krancour krancour added kind/bug Something isn't working as intended; If unsure that something IS a bug, start a discussion instead priority/high Needs to be addressed sooner rather than later area/controller Affects the (main) controller backport/release-1.8 PRs with this label will automatically be back-ported to the release-1.8 branch labels Nov 5, 2025
@netlify
Copy link

netlify bot commented Nov 5, 2025

Deploy Preview for docs-kargo-io ready!

Name Link
🔨 Latest commit 2ee2423
🔍 Latest deploy log https://app.netlify.com/projects/docs-kargo-io/deploys/690b7e1c0dc9e10008312bdb
😎 Deploy Preview https://deploy-preview-5350.docs.kargo.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov
Copy link

codecov bot commented Nov 5, 2025

Codecov Report

❌ Patch coverage is 49.27536% with 35 lines in your changes missing coverage. Please review.
✅ Project coverage is 55.93%. Comparing base (1c8f307) to head (2ee2423).

Files with missing lines Patch % Lines
pkg/controller/git/work_tree.go 0.00% 29 Missing ⚠️
pkg/controller/git/base_repo.go 75.00% 3 Missing and 1 partial ⚠️
pkg/controller/git/bare_repo.go 94.11% 1 Missing ⚠️
pkg/controller/git/repo.go 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5350      +/-   ##
==========================================
- Coverage   55.95%   55.93%   -0.03%     
==========================================
  Files         407      407              
  Lines       29906    29939      +33     
==========================================
+ Hits        16735    16745      +10     
- Misses      12200    12222      +22     
- Partials      971      972       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines +32 to +33
internalURL string
externalURL string
Copy link
Contributor

Choose a reason for hiding this comment

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

I find the internalURL and externalURL naming quite confusing. Would something like url (or operationalURL) and canonicalURL maybe be better?

Copy link
Member Author

Choose a reason for hiding this comment

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

Now that you've pointed it out, I agree the names aren't intuitive. You'd need to read the comments to understand. "Canonical" doesn't work because it's too similar to "normalized," and there's no real giant this is normalized. I'll noodle on this a bit. I agree there's a better naming scheme somewhere here that I've overlooked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/controller Affects the (main) controller backport/release-1.8 PRs with this label will automatically be back-ported to the release-1.8 branch kind/bug Something isn't working as intended; If unsure that something IS a bug, start a discussion instead priority/high Needs to be addressed sooner rather than later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RegEx URL for credentials don't work for Git Push step unless it's all lowercase

2 participants