Skip to content

Commit

Permalink
Fix: filter branch HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
randy3k committed Mar 3, 2018
1 parent ac44ee5 commit 25e50bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/git_mixins/branches.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_branches(self, sort_by_recent=False):
"refs/remotes")
return (branch
for branch in (self._parse_branch_line(self, line) for line in stdout.split("\n"))
if branch)
if branch and branch.name != "HEAD")

@staticmethod
def _parse_branch_line(self, line):
Expand Down

0 comments on commit 25e50bc

Please sign in to comment.