-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-url-parse does not yet (1.2.2) handle trailing slashes, which are an optional part of all git URLs, but were supported before the switch to using GitPython. Closes #277
- Loading branch information
Showing
6 changed files
with
10 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ lml==0.0.9 | |
appdirs==1.2.0 | ||
crayons== 0.1.0 | ||
GitPython==2.0.0 | ||
git-url-parse | ||
git-url-parse==1.2.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ lml>=0.0.9 | |
appdirs>=1.2.0 | ||
crayons>= 0.1.0 | ||
GitPython>=2.0.0 | ||
git-url-parse | ||
git-url-parse>=1.2.2 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,14 +125,16 @@ def test_update_existing_with_reference_parameter( | |
|
||
def test_get_repo_name(): | ||
repos = [ | ||
"https://github.com/sphinx-doc/sphinx", | ||
"https://github.com/repo-abc-def/repo", | ||
"https://github.com/abc/repo", | ||
"https://github.com/abc/repo.git", | ||
"https://github.com/abc/repo/", | ||
"[email protected]:moremoban/moban.git", | ||
"[email protected]:abc/repo.git", | ||
"[email protected]:abc/repo.git", | ||
"git://github.com/abc/repo.git", | ||
] | ||
actual = [get_repo_name(repo) for repo in repos] | ||
expected = ["sphinx", "repo", "repo", "repo", "moban"] | ||
expected = ["repo"] * len(repos) | ||
eq_(expected, actual) | ||
|
||
|
||
|