Skip to content

git-secrets --install test failures without code changes #239

@sparr

Description

@sparr

I believe that all tests passed when I last contributed to this repo, both before and after my change. I have confirmed that the following failure happens now with the current master branch and with commit b9e96b3 prior to the last change. I suspect this could be caused by some change to my bash, git, grep, etc, but I haven't been able to narrow it down yet.

 ✗ Overwrites hooks if -f is given
   (in test file test/git-secrets.bats, line 147)
     `[ $status -eq 0 ]' failed
   Initialized empty Git repository in /tmp/test-repo/.git/
   /home/clrnc/src/git-secrets
   /tmp/test-repo
   /tmp/test-repo
 ✓ installs hooks for repo with Debian style directories
 ✗ installs hooks to template directory
   (in test file test/git-secrets.bats, line 164)
     `[ $status -eq 0 ]' failed
   Initialized empty Git repository in /tmp/test-repo/.git/
   /home/clrnc/src/git-secrets
   /tmp/test-repo

The failure on line 147 which tests line 146 is late. There's actually a NZEC on line 145 which isn't currently being tested for.

Both failures are related to git-secrets --install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions