From 78e14da53be2b27247632e6e362668f780a399a2 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Wed, 27 May 2009 10:17:01 +0200 Subject: [PATCH] tg-push: handle non-tgish branches MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit tg push died if you gave it a non-tgish branch: $ tg push -r push-test master fatal: Not a valid object name refs/top-bases/master fatal: ambiguous argument '^{tree}': unknown revision or path not in the working tree. Use '--' to separate paths from revisions fatal: Not a valid object name master:.topdeps Signed-off-by: Bert Wesarg Signed-off-by: Uwe Kleine-König --- tg-push.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tg-push.sh b/tg-push.sh index 8e1b43f..cd208a0 100644 --- a/tg-push.sh +++ b/tg-push.sh @@ -67,8 +67,8 @@ for name in $branches; do _dep_is_tgish= push_branch "$name" - # deps - $recurse_deps && + # deps but only if branch is tgish + $recurse_deps && [ -n "$_dep_is_tgish" ] && no_remotes=1 recurse_deps push_branch "$name" # remove multiple occurrences of the same branch -- 2.30.2