diff options
| author | Thomas Wolf | 2022-03-29 17:15:40 +0000 |
|---|---|---|
| committer | Thomas Wolf | 2022-04-02 22:00:37 +0000 |
| commit | 9cefab837688da406c86c415bdc129f3c9baef43 (patch) | |
| tree | 12fb603bd6b2aa23267b3dab3274ad98f5f33ed3 | |
| parent | cbfe35223c1a9312c120089050078f5d55583380 (diff) | |
| download | egit-9cefab837688da406c86c415bdc129f3c9baef43.tar.gz egit-9cefab837688da406c86c415bdc129f3c9baef43.tar.xz egit-9cefab837688da406c86c415bdc129f3c9baef43.zip | |
[fetch pr] Relax remote URI pattern
This pattern is used only to match against remote URIs from git config
remote.<name>.fetch. It is not necessary to ensure it ends in ".git";
servers may well allow access without that file extension.
Bug: 579477
Change-Id: Ieead00574cb0c26248aac8ea2e78a6c096dced67
Signed-off-by: Thomas Wolf <thomas.wolf@paranor.ch>
| -rw-r--r-- | org.eclipse.egit.core/src/org/eclipse/egit/core/internal/hosts/GitHosts.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/hosts/GitHosts.java b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/hosts/GitHosts.java index 2e5909cbdf..17032597a6 100644 --- a/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/hosts/GitHosts.java +++ b/org.eclipse.egit.core/src/org/eclipse/egit/core/internal/hosts/GitHosts.java @@ -52,7 +52,7 @@ public final class GitHosts { private static Pattern remote(String hosts) { return Pattern .compile("(?:(?:https?|ssh)://)?(?:[^@:/]+(?::[^@:/]*)?@)?(?:" //$NON-NLS-1$ - + hosts + ")[:/][^/]+/.*\\.git"); //$NON-NLS-1$ + + hosts + ")[:/].*"); //$NON-NLS-1$ } static { |
