From 22086627d00e6d73109c7fd64d21a8fe31461b09 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 25 Jan 2012 13:50:49 +0800 Subject: [PATCH] For git batch commands, make $base_path variable local so that it doesn't persist --- lib/git/repo_index.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/git/repo_index.sh b/lib/git/repo_index.sh index 8271f4c..b9211cf 100644 --- a/lib/git/repo_index.sh +++ b/lib/git/repo_index.sh @@ -258,6 +258,7 @@ function _git_index_batch_cmd() { if [ -n "$1" ]; then echo -e "== Running command for $_bld_col$(_git_index_count)$_txt_col repos...\n" unset IFS + local base_path for base_path in $(sed -e "s/--.*//" "$GIT_REPO_DIR/.git_index" | grep . | sort); do if [ -z "$NOCD" ]; then cd "$base_path"; fi $@