-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use URIish for Git remote instead of URL
The URL class checks whether there is a stream factory for the given protocol of the URL; in other words, it checks if it recognizes the URL protocol. Unfortunately, the `ssh` protocol, commonly used in Git remotes, is not recognized. This means trying to construct an SSH URL fails with an exception. To fix this, we use URIish, which implements no such checks. URIish belongs to JGit, and is used instead of URI as jopt-simple is able to handle the URIish constructor, thus avoiding manually converting a URI to a URIish for use by JGit.
- Loading branch information
Showing
2 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters