diff options
Diffstat (limited to 'commit')
-rwxr-xr-x | commit | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -13,7 +13,7 @@ GIT="hit" # Usage: git_folder <file> function git_folder { - local folder="$1" folder folders dir_list cwd + local folder="$*" folder folders dir_list cwd if [ -d "$folder/.git" ]; then GIT_FOLDER="$folder" @@ -27,18 +27,18 @@ function git_folder { done cwd="`pwd`" - cd $folder + cd "$folder" for i in $folders; do cd .. if [ -d "$(pwd)/.git" ]; then GIT_FOLDER="$(pwd)" - cd $cwd + cd "$cwd" return fi done - cd $cwd + cd "$cwd" return 1 } |