# HG changeset patch # User Peter Sanchez # Date 1454705656 28800 # Fri Feb 05 12:54:16 2016 -0800 # Node ID 5254a9ab3afdffb18014fd0161cebbbbf4bb7724 # Parent 22dfaefdf6eeced11357419f0351d55f587df02b Added check for 'no repo' and cleared the output if true. diff --git a/scripts/scm-prompt.sh b/scripts/scm-prompt.sh --- a/scripts/scm-prompt.sh +++ b/scripts/scm-prompt.sh @@ -159,6 +159,10 @@ fi fi if [ -n "$br" ]; then - printf "$fmt" "$br" + if [ "$br" = "0000000" ]; then + printf "" + else + printf "$fmt" "$br" + fi fi }