From: Bert Wesarg Date: Wed, 27 May 2009 08:17:01 GMT Subject: [TopGit PATCH v2 3/3] tg-push: handle non-tgish branches Message-ID: <1243412221-2844-1-git-send-email-bert.wesarg@googlemail.com> In-Reply-To: <1243412195-29841-1-git-send-email-bert.wesarg@googlemail.com> tg push dies if you give 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 Fix this. Signed-off-by: Bert Wesarg --- tg-push.sh | 4 ++-- 1 files 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 -- tg: (cbca164..) bw/push-fixes-2 (depends on: bw/push-fixes)