From bfa841051066dbac36f24ee71862a3d59c8222a1 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Tue, 13 Oct 2015 05:04:00 -0700 Subject: [PATCH] tg-push.sh: correct non-portable variable setting Attempting to set a variable temporarily while calling a shell function using the "var==val func" syntax is highly unportable. Instead set "var=val" separately to provide consistent behavior. Signed-off-by: Kyle J. McKay --- tg-push.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tg-push.sh b/tg-push.sh index c51e1c0..acacb1e 100644 --- a/tg-push.sh +++ b/tg-push.sh @@ -74,6 +74,7 @@ push_branch() echo "top-bases/$_dep" >> "$_listfile" } +no_remotes=1 for name in $branches; do # current branch # re-use push_branch, which expects some pre-defined variables @@ -86,7 +87,7 @@ for name in $branches; do # deps but only if branch is tgish $recurse_deps && [ -n "$_dep_is_tgish" ] && - no_remotes=1 recurse_deps push_branch "$name" + recurse_deps push_branch "$name" done # remove multiple occurrences of the same branch -- 2.11.4.GIT