summaryrefslogtreecommitdiff
path: root/git-prompt.sh
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2009-06-15 07:28:21 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2009-06-15 07:28:21 +0300
commit3c536e468adcefcba524c0aa844563c4eabdd4cb (patch)
treea65ba70c7407af2413a20adf8e7647a0e7c4cc8e /git-prompt.sh
parentfixed (for parse_git_status() only): files from parent directiry were shown i... (diff)
downloadgit-prompt-3c536e468adcefcba524c0aa844563c4eabdd4cb.tar.gz
git-prompt-3c536e468adcefcba524c0aa844563c4eabdd4cb.tar.bz2
git-prompt-3c536e468adcefcba524c0aa844563c4eabdd4cb.zip
fixed: PARSE_VCS_STATUS incorrectly initialized if git is not installed
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-xgit-prompt.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index cab5530..2aa9987 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -7,7 +7,8 @@
##### read config file if any.
- unset dir_color rc_color root_id_color init_vcs_color clean_vcs_color modified_vcs_color added_vcs_color mixed_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color
+ unset dir_color rc_color root_id_color init_vcs_color clean_vcs_color
+ unset modified_vcs_color added_vcs_color mixed_vcs_color untracked_vcs_color op_vcs_color detached_vcs_color
conf=git-prompt.conf; [[ -r $conf ]] && . $conf
conf=/etc/git-prompt.conf; [[ -r $conf ]] && . $conf
@@ -50,7 +51,7 @@
##################################################################### post config
################# make PARSE_VCS_STATUS
-
+ PARSE_VCS_STATUS=""
[[ $git_module = "on" ]] && type git >&/dev/null && PARSE_VCS_STATUS="parse_git_status"
[[ $svn_module = "on" ]] && type svn >&/dev/null && PARSE_VCS_STATUS+="||parse_svn_status"
[[ $hg_module = "on" ]] && type hg >&/dev/null && PARSE_VCS_STATUS+="||parse_hg_status"