diff options
| -rwxr-xr-x | git-sonar | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -60,16 +60,16 @@ if [ $# -ne 0 ]; then fi # git-precheck will determine whether we are currently inside a git repository, -# as well as whether the repo is in any abnormal state. If outside a repo, exit -# and do not process any remainder of this script. +# as well as whether the repo has any ongoing operation in-progress. +# If outside a repo, exit and do not process any remainder of this script. git-precheck --quiet --ignore-dirty --ignore-untracked >/dev/null 2>&1 precheck_status=$? [ "$precheck_status" -ge 4 ] && exit 0 # Initialize configuration variables and set default values if not provided by # the environment. Note: ANSI escape codes (and other unprintable sequences) -# must be enclosed within a \001 byte (ASCII start of heading) at the start and -# a \002 byte (ASCII start of text) at the end - some shells rely on this to +# must be enclosed by a \001 byte (ASCII start of heading) at the start and a +# \002 byte (ASCII start of text) at the end - some shells rely on this to # correctly track the length of their rendered prompt. COLOR_GRAY="\001\\033[1;30m\002" COLOR_RED="\001\\033[1;31m\002" |
