summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-23 15:12:43 +0300
committerLeonid Volnitsky <Leonid@Volnitsky.com>2011-04-23 15:12:43 +0300
commit1d6eb2013f78a6d9419259e1846c3bfd8c54261d (patch)
tree309883f72c3ace240160aaf9bc394537080b5e83
parentfixied: clean repo detection; new hexlen default=5; removed ":" before file ... (diff)
downloadgit-prompt-1d6eb2013f78a6d9419259e1846c3bfd8c54261d.tar.gz
git-prompt-1d6eb2013f78a6d9419259e1846c3bfd8c54261d.tar.bz2
git-prompt-1d6eb2013f78a6d9419259e1846c3bfd8c54261d.zip
fixed: sed parsing broken dependent on git status output (verbose or not)
-rwxr-xr-xgit-prompt.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-prompt.sh b/git-prompt.sh
index 95559b8..d77c5cb 100755
--- a/git-prompt.sh
+++ b/git-prompt.sh
@@ -416,8 +416,8 @@ parse_git_status() {
git status 2>/dev/null |
sed -n '
s/^# On branch /branch=/p
- s/^nothing to commit/clean=clean/p
- s/^# Initial commit/init=init/p
+ s/^nothing to commi.*/clean=clean/p
+ s/^# Initial commi.*/init=init/p
/^# Changes to be committed:/,/^# [A-Z]/ {
s/^# Changes to be committed:/added=added;/p