Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nosarthur committed Jul 24, 2023
1 parent 7540678 commit 486a2c4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gita/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,12 @@ def has_stashed(flags: List[str], path) -> bool:
"""
# FIXME: this doesn't work for repos like worktrees, bare, etc
p = Path(path) / ".git" / "logs" / "refs" / "stash"
return p.is_file()
got = False
try:
got = p.is_file()
except Exception:
pass
return got


def get_commit_msg(prop: Dict[str, str]) -> str:
Expand Down

0 comments on commit 486a2c4

Please sign in to comment.