Problem with hooks for pre_commit

Hello guys,

I’m doing an umbrella project with my partners and they configured a pre_commit. I did a rebase in my branch, but I have a problem to commit, I have this error:

I did mix deps.clean -all and check the git repository but I couldn’t found the error. Do you have any idea about this error?
Thanks a lot!

1 Like

The message you’re getting (“expected :version to be a valid Version” from Mix) is emitted here:

Is the git hook adjusting the contents of your mix.exs somehow to include branch metadata? The value in the error "0.0.1+" is what I’d expect if the hook was trying to produce "0.0.1+1db4539" or similar but hit an error fetching the SHA. The “fatal: not a git repository” parts suggest that as well…

3 Likes