external repo file support

This commit is contained in:
zricethezav committed 2018-03-10 13:32:05 -06:00
1 parent 2c80ad5ea9
commit ccef3680d5
6 files changed
+96 -15

No files matched your search

+3 -2
View File
@@ -15,11 +15,12 @@ func TestOwnerPath(t *testing.T) {
if pwd != p {
t.Error()
}
opts.ClonePath = "test"
opts.ClonePath = "gitleaksTestClonePath"
p, err = ownerPath("nameToIgnore")
if p != "test" {
if p != "gitleaksTestClonePath" {
t.Error()
}
os.Remove("gitleaksTestClonePath")
}
func TestNewOwner(t *testing.T) {