Open mattcen opened 1 year ago
Not sure if this is t he nicest way to do things, especially with the decode()
and calling head()
just so we can catch it if it fails, but it feels less bad than guessing, which is what this replaces. Thoughts and comments welcome.
Rather than checking the revision that HEAD and other branches point at, you could simply check what HEAD resolves to.
See Repo.refs.follow(b'HEAD')
@jelmer Thanks; code updated.
Fixes #307