Skip to content

Commit

Permalink
fix merge conflicts. (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrav committed May 2, 2022
1 parent eb9d3e3 commit 1bd5e9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sources/git/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ func PrepareRepo(uriString string) (string, bool, error) {
switch uri.Scheme {
case "file":
path = fmt.Sprintf("%s%s", uri.Host, uri.Path)
case "https":
case "http", "https":
remotePath := fmt.Sprintf("%s://%s%s", uri.Scheme, uri.Host, uri.Path)
remote = true
switch {
Expand Down
6 changes: 6 additions & 0 deletions pkg/sources/git/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ func TestPrepareRepo(t *testing.T) {
remote: true,
err: nil,
},
{
uri: "http://github.com/dustin-decker/secretsandstuff.git",
path: true,
remote: true,
err: nil,
},
{
uri: "file:///path/to/file.json",
path: true,
Expand Down

0 comments on commit 1bd5e9d

Please sign in to comment.