mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 15:14:38 +00:00
fix merge conflicts. (#497)
This commit is contained in:
parent
eb9d3e333c
commit
1bd5e9d9d2
2 changed files with 7 additions and 1 deletions
|
@ -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 {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue