From 20dba32a51b3f2d58623ae1151987aca7a9b5f16 Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Thu, 28 Mar 2019 11:22:00 -0700 Subject: [PATCH] Hopefully fixed git function to handle files with spaces --- rc/git | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rc/git b/rc/git index 341ca7b..7e235fe 100644 --- a/rc/git +++ b/rc/git @@ -34,7 +34,7 @@ function git () { if [ "${git:0:3}" != "no " ]; then if [ "$1" = "checkout" -o "$1" = "co" ]; then - $git $@ + $git "$@" set_title elif [ "$1" = "files" ]; then if [ -z "$2" ]; then @@ -45,7 +45,7 @@ function git () { $git show --pretty="" --name-only $2 fi else - $git $@ + $git "$@" fi fi } # git -- 2.17.1