Fixed bug when trying to use gc -m "commit message"

This commit is contained in:
Nathan Broadbent
2011-10-20 20:20:27 +08:00
parent c2b7ef5960
commit 33fe02982a

View File

@@ -106,7 +106,9 @@ git_expand_args() {
for i in $(seq $(echo $arg | tr ".." " ")); do for i in $(seq $(echo $arg | tr ".." " ")); do
files="$files $(eval echo \$$git_env_char$i)" files="$files $(eval echo \$$git_env_char$i)"
done done
else # Otherwise, treat $arg as a normal string. else # Otherwise, treat $arg as a normal string.
# If arg contains any spaces, (re)wrap it in double quotes
if echo $arg | grep -q " "; then arg="\"$arg\""; fi
files="$files $arg" files="$files $arg"
fi fi
done done