Fix git_commit_all for OSX

This commit is contained in:
Nathan Broadbent
2013-07-22 20:33:23 -07:00
parent 2541ef9817
commit e9f3fd7a7c

View File

@@ -210,7 +210,7 @@ git_commit_prompt() {
# Prompt for commit message, then commit all modified and untracked files.
git_commit_all() {
fail_if_not_git_repo || return 1
changes=$(git status --porcelain | wc -l)
changes=$(git status --porcelain | wc -l | tr -d ' ')
if [ "$changes" -gt 0 ]; then
if [ -n "$APPEND" ]; then
local appending=" | \033[0;36mappending '\033[1;36m$APPEND\033[0;36m' to commit message.\033[0m"