-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recursive scan is broken #27
Comments
Correct me if I'm wrong:
was not working. it always died with "-r|--recursive cannot be supplied with --cached, --no-index, or --untracked". The test -recursive is mutual exclusive with --scan makes sure that this works now. it checks for success rather than error. The test git-secrets/test/git-secrets.bats Lines 297 to 300 in 513af41
|
I actually can't get this to work in any format. I'm also sorry, I don't have the historical context of whether or not this worked previously. $ git secrets --scan -r
-r|--recursive cannot be supplied with --cached, --no-index, or --untracked
$ git secrets --scan -r .
-r|--recursive cannot be supplied with --cached, --no-index, or --untracked
$ git secrets --scan -r `pwd`
-r|--recursive cannot be supplied with --cached, --no-index, or --untracked
$ git secrets --scan -r /full/path/to/my/git/repo/
-r|--recursive cannot be supplied with --cached, --no-index, or --untracked Is there a debug or verbose mode where I can give you more information on what's going on with the internal variables? Also, we should probably rename the test I wasn't clear on how to use the test suite or I would have attempted to submit a patch for this. |
I take it back, I just figured out how to run the tests with bats. I'll see if I can't figure out what's going on. |
This issue is now resolved, correct? |
Yep! Thanks for the help. |
@mtdowling @michaelwittig
See commit 513af41#diff-9bcd3f161947f1bdee06e4b12046cb65
I believe that the recursive function is now broken with the latest commit.
There is a test that shows it should work called
Scan recursively
:git-secrets/test/git-secrets.bats
Lines 75 to 81 in 513af41
And a test named
-recursive can only be used with --scan
:git-secrets/test/git-secrets.bats
Lines 297 to 300 in 513af41
I think this is broken and should replace
--list
with--scan
as I've done here:But a new test was added to ensure this fails named
-recursive is mutual exclusive with --scan
:git-secrets/test/git-secrets.bats
Lines 292 to 295 in 513af41
Can you clarify that this was intended or fix the broken behavior? Thank you very much.
The text was updated successfully, but these errors were encountered: