Fix switching to repositories with spaces or other special characters in their path

This commit is contained in:
Jacob Lukas
2011-11-09 11:37:06 -08:00
parent e17413f579
commit a1a7e3066e

View File

@@ -91,7 +91,7 @@ function git_index() {
# Go to our base path
if [ -n "$base_path" ]; then
unset IFS
eval cd "$base_path" # eval turns ~ into $HOME
eval cd \"$base_path\" # eval turns ~ into $HOME
# Run git callback (either update or show changes), if we are in the root directory
if [ -z "${sub_path%/}" ]; then _git_index_update_or_status; fi
else