prevent 'got commit' on branches outside "refs/heads/" (the only exception is the work tree's temporary histedit branch)