Skip to content

Commit 3b6e08f

Browse files
authored
Merge pull request #13 from bclarkx2/bug/stash-bug
Handle stashes for non repo dirs
2 parents 4b57535 + 5c7ce6c commit 3b6e08f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pwd.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,10 @@ def format_name(fmt, name, color):
181181
return ""
182182

183183
def format_stashes(stashes):
184-
return "".join("." * stashes)
184+
if stashes:
185+
return "".join("." * stashes)
186+
else:
187+
return ""
185188

186189
###############################################################################
187190
# Main #

0 commit comments

Comments
 (0)