mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
Revert "Add support for scanning single branch"
This commit is contained in:
1 parent
36340c8f2f
commit
98173b3aa6
3 files changed
+3
-41
No files matched your search
@@ -320,23 +320,6 @@ func TestRun(t *testing.T) {
|
||||
expectedErrMsg: "",
|
||||
commitPerPage: 1,
|
||||
},
|
||||
{
|
||||
testOpts: Options{
|
||||
Repo: "https://github.com/gitleakstest/gronit.git",
|
||||
Branch: "master",
|
||||
},
|
||||
description: "test github leaks on single branch - master",
|
||||
numLeaks: 2,
|
||||
},
|
||||
{
|
||||
testOpts: Options{
|
||||
Repo: "https://github.com/gitleakstest/gronit.git",
|
||||
Branch: "nonExistingBranch",
|
||||
},
|
||||
description: "test github leaks on single branch which doesn't exist",
|
||||
numLeaks: 0,
|
||||
expectedErrMsg: "reference not found",
|
||||
},
|
||||
}
|
||||
g := goblin.Goblin(t)
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in new issue
Block a user