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 <bert.wesarg@googlemail.com>
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
_dep_is_tgish=
push_branch "$name"
_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
no_remotes=1 recurse_deps push_branch "$name"
# remove multiple occurrences of the same branch