From 5af61d50833deadc8fc60a88f951795396cde150 Mon Sep 17 00:00:00 2001 From: Leonid Volnitsky Date: Sat, 24 Oct 2009 12:58:46 +0300 Subject: fixed: in locked state "git status" does not work --- git-prompt.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-prompt.sh') diff --git a/git-prompt.sh b/git-prompt.sh index 4fd763e..d6b0492 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -175,7 +175,7 @@ cwd_truncate() { # split path into: head='~/', truncateble middle, last_dir local cwd_max_length=$1 - # expression wich bash-3.1 or older can not understand, so we wrap it in eval + # expression which bash-3.1 or older can not understand, so we wrap it in eval exp31='[[ "$cwd" =~ (~?/)(.*/)([^/]*)$ ]]' if eval $exp31 ; then # only valid if path have more then 1 dir local path_head=${BASH_REMATCH[1]} @@ -392,7 +392,7 @@ parse_git_status() { added_files=() modified_files=() untracked_files=() - unset status modified added clean init added mixed untracked op detached + unset branch status modified added clean init added mixed untracked op detached # quoting hell eval " $( -- cgit v1.2.3