Skip to content
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

#312: Added ability to prefer git (ssh) protocol instead of https for cloning repos #724

Merged
merged 39 commits into from
Nov 11, 2024

Conversation

alfeilex
Copy link
Member

@alfeilex alfeilex commented Oct 29, 2024

This PR finishes PR #625

Fixes #312

  • Introduced PREFERRED_GIT_PROTOCOL property to allow configuration of preferred Git protocol (SSH or HTTPS).
  • Default behavior remains unchanged if the property is not set, using the provided Git URL as is.
  • Implemented GitUrlSyntax enum to manage and convert between SSH and HTTPS URL formats.
  • Updated GitUrl class for URL parsing and protocol conversion based on the property.
  • Added tests to validate URL conversion and ensure no changes for specific domains like GitHub.
  • When PREFERRED_GIT_PROTOCOL is not defined then URL doesn't change

diiinesh and others added 28 commits September 17, 2024 10:08
… GitUrl.java to process ssh urls as well, and added tests
…num.java and seperate IdeVariable, moved test functions to GitUrlSyntax.java
# Conflicts:
#	cli/src/main/java/com/devonfw/tools/ide/context/GitContextImpl.java
…project for git based implementations and its config file
@coveralls
Copy link
Collaborator

coveralls commented Oct 29, 2024

Pull Request Test Coverage Report for Build 11783308535

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 23 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.06%) to 67.195%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/context/GitUrl.java 3 64.29%
com/devonfw/tools/ide/context/GitContextImpl.java 20 51.72%
Totals Coverage Status
Change from base Build 11783304870: 0.06%
Covered Lines: 6376
Relevant Lines: 9145

💛 - Coveralls

Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@alfeilex thanks for taking over this PR and completing it. All seems functionally correct and complete now. 👍
I left some comments for final improvement. Please have a look. We can merge if resolved.

@hohwille hohwille self-assigned this Oct 31, 2024
@hohwille hohwille added this to the release:2024.11.001 milestone Oct 31, 2024
Copy link
Member

@hohwille hohwille left a comment

Choose a reason for hiding this comment

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

@alfeilex thanks for the rework. All perfect now 👍
Ready for merge.

@hohwille hohwille merged commit 55db46d into devonfw:main Nov 11, 2024
3 checks passed
@alfeilex alfeilex deleted the #312-enhance-git-syntax-urls branch November 11, 2024 19:50
@hohwille hohwille added the reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented. label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reviewed Marks PRs that have been presented in the sprint-review meeting or that do not need to be presented.
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Ability to prefer git (ssh) protocol instead of https for cloning repos
4 participants