-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
support ls-remote, and git+ssh protocol
- Loading branch information
1 parent
af162fe
commit db50c3e
Showing
4 changed files
with
21 additions
and
2 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
git |
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 |
---|---|---|
|
@@ -19,6 +19,10 @@ func TestIsRewriteAllowed(t *testing.T) { | |
input: []string{"fetch", ""}, | ||
expected: true, | ||
}, | ||
{ | ||
input: []string{"ls-remote", ""}, | ||
expected: true, | ||
}, | ||
{ | ||
input: []string{"--work-tree=/work", "clone"}, | ||
expected: true, | ||
|
@@ -51,6 +55,14 @@ func TestScrub(t *testing.T) { | |
input: "[email protected]:dependabot/git-https-shim", | ||
expected: "https://github.com/dependabot/git-https-shim", | ||
}, | ||
{ | ||
input: "git+ssh://[email protected]/dependabot/git-https-shim", | ||
expected: "https://github.com/dependabot/git-https-shim", | ||
}, | ||
{ | ||
input: "git+ssh://user:[email protected]/dependabot/git-https-shim", | ||
expected: "https://user:[email protected]/dependabot/git-https-shim", | ||
}, | ||
{ | ||
input: "ssh://user:[email protected]/dependabot/git-https-shim", | ||
expected: "https://user:[email protected]/dependabot/git-https-shim", | ||
|