Armael / marracheck

Gotta check them all!
10 stars 3 forks source link

Fix cleanup uncommited changes for freshly created cover_state.git #5

Closed art-w closed 2 years ago

art-w commented 2 years ago

This project is awesome!

A tiny issue when getting started: OpamGit.VCS.is_dirty raises an exception when cover_state.git doesn't have a history (because it was just initialized, so git is a bit confused.)

Initialized empty Git repository in ../marracheck_data/switches/ocaml-base-compiler.4.13.0/cover_state.git/.git/
marracheck: internal error, uncaught exception:
            OpamSystem.Process_error(_)
Armael commented 2 years ago

Makes sense indeed! Thanks for the fix.