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 <bert.wesarg@xxxxxxxxxxxxxx> --- 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) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html