From: Bert Wesarg Date: Wed, 27 May 2009 08:17:01 +0000 (+0200) Subject: tg-push: handle non-tgish branches X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=topgit.git;a=commitdiff_plain;h=78e14da53be2b27247632e6e362668f780a399a2 tg-push: handle non-tgish branches 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 --- 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