Fixed bug when trying to use gc -m "commit message"
This commit is contained in:
@@ -107,6 +107,8 @@ git_expand_args() {
|
||||
files="$files $(eval echo \$$git_env_char$i)"
|
||||
done
|
||||
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"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user