Merge pull request #13 from jlukas/master

Fix switching to repositories with spaces or other special characters in their path
This commit is contained in:
Nathan B
2011-11-09 17:55:42 -08:00

View File

@@ -91,7 +91,7 @@ function git_index() {
# Go to our base path # Go to our base path
if [ -n "$base_path" ]; then if [ -n "$base_path" ]; then
unset IFS 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 # 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 if [ -z "${sub_path%/}" ]; then _git_index_update_or_status; fi
else else