Skip to content
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

fix(witness): witness should not error on an empty git repo with no commits #51

Merged

Conversation

kriscoleman
Copy link
Contributor

Fixes in-toto/witness#275

When witness runs on an empty git repo without commits, it shouldn't error with reference not found

reproduction

  1. start a new git repo, do not make any commits
  2. run witness on it
  3. observe witness fail

acceptance criteria

  • witness doesn't fail on step 3

@kriscoleman kriscoleman force-pushed the fix/issue272-fix-git-attestor-for-empty-git-repos branch from 3476823 to b238634 Compare August 1, 2023 19:01
@coveralls
Copy link

Pull Request Test Coverage Report for Build 5730790106

  • 3 of 3 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 48.494%

Totals Coverage Status
Change from base Build 5591257680: 0.07%
Covered Lines: 1433
Relevant Lines: 2955

💛 - Coveralls

@kriscoleman kriscoleman merged commit 2357401 into main Aug 1, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error running git attestor when following the quick start guide
3 participants