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)"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user