Skip to content

Commit 9547a29

Browse files
authored
Merge pull request #14 from bclarkx2/dev
Merge #13: Handle stashes in non-repo dirs
2 parents 88487a7 + 3b6e08f commit 9547a29

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)