We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.git/HEAD
1 parent 766ccaf commit b2b8aacCopy full SHA for b2b8aac
GitHacker/__init__.py
@@ -281,7 +281,7 @@ def parse_current_branch_name(self):
281
# [1] https://stackoverflow.com/a/67151923
282
# [2] https://github.com/git/git/blob/v2.37.1/refs.c#L38-L57
283
branch_names = re.findall(r'ref: refs/heads/([a-zA-Z\d_-]+)', response.text)
284
- assert len(branch_names) == 1
+ assert len(branch_names) <= 1
285
return branch_names
286
287
def parse_logged_branch_names(self):
0 commit comments