~edwargix/git.sr.ht

75cdfbb66a0824b57b538623a3024af9c22785a4 — Drew DeVault 6 years ago a82ce3c
Override is_empty to use only branches
1 files changed, 4 insertions(+), 0 deletions(-)

M gitsrht/git.py
M gitsrht/git.py => gitsrht/git.py +4 -0
@@ 59,6 59,10 @@ class Repository(GitRepository):
            branch = self.branches.get(branch)
        return branch

    @property
    def is_empty(self):
        return len(list(self.branches.local)) == 0

class AnnotatedTreeEntry:
    def __init__(self, repo, entry):
        self._entry = entry