-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Git URL rewrite issue for HTTPS URLs #952
Conversation
Using `git config` has the disadvantage that it also changes the Git config in the development system when running the test cases. Rename `addtlCredArgs` to `addtlGitArgs` to be more generic. Use `-c` Git flag to supply specific configuration instead of using Git config.
The Git URL rewrite logic was located outside of the credentials section of the code, which means it was used in any case. However, it does not make sense to be used in combination with a HTTPS URL and basic auth. Move section as-is into the private key section and setup.
Fix credentials checks to allow for the combination of: - HTTPS URL, - private SSH key, and - Git URL rewrite enabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@HeavyWombat I wonder if no release no would be more correct because we fix a bug in unreleased code ? Not sure if we ever honored this on the other hand.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: SaschaSchwarze0 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Changes
Avoid using git config
Using
git config
has the disadvantage that it also changes the Git configin the development system when running the test cases.
Rename
addtlCredArgs
toaddtlGitArgs
to be more generic.Use
-c
Git flag to supply specific configuration instead of using Git config.Move Git URL rewrite into private key section
The Git URL rewrite logic was located outside of the credentials section of the
code, which means it was used in any case. However, it does not make sense to
be used in combination with a HTTPS URL and basic auth.
Move section as-is into the private key section and setup.
Fix Git URL rewrite issue for HTTPS URLs
Fix credentials checks to allow for the combination of:
Submitter Checklist
See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.
Release Notes