From 5b60daae3bc26435ee77f12a0b93d55dedbee3ea Mon Sep 17 00:00:00 2001 From: "T. Joseph Carter" Date: Mon, 16 Feb 2015 20:47:54 -0800 Subject: [PATCH] Don't use git -C and get rid of echo_cmd (doesn't do what it should) --- fetch-submodules.sh | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/fetch-submodules.sh b/fetch-submodules.sh index 6c29820295..6a4e378870 100755 --- a/fetch-submodules.sh +++ b/fetch-submodules.sh @@ -13,11 +13,6 @@ fi WORKDIR=$(pwd) -echo_cmd() { - echo "$@" - "$@" -} - # A stripped-down version of the fetch_git rule from libretro-super # Clones or pulls updates from a git repository into a local directory @@ -27,9 +22,13 @@ echo_cmd() { fetch_git() { fetch_dir="$WORKDIR/$2" if [ -d "$fetch_dir/.git" ]; then - echo_cmd git -C "$fetch_dir" pull + echo "cd \"$fetch_dir\"" + cd "$fetch_dir" + echo git pull + git pull else - echo_cmd git clone "$1" "$fetch_dir" + echo "git clone \"$1\" \"$fetch_dir\"" + git clone "$1" "$fetch_dir" fi }