-
-
Couldn't load subscription status.
- Fork 960
Open
Labels
Description
Error in repo.active_branch if branch is in DETACHED HEAD state:
{TypeError}HEAD is a detached symbolic reference as it points to '0fa1f2a7d9dd9fb63fa775d2d97ad72f56f1d819'
The branch is None in def _get_ref_info(cls, repo, ref_path): because of
# its a commit
if repo.re_hexsha_only.match(tokens[0]):
return (tokens[0], None)
def active_branch(self) could return HEAD-{commit-hash} instead like:
try:
active_branch = repo.active_branch
except:
active_branch = 'DETACHED_' + repo.head.object.hexsha
mxmlnkn, akath20, ceteri, lopuhin, tellmeaboutcode and 19 more