From: Bert Wesarg <bert.wesarg@googlemail.com>
To: Petr Baudis <pasky@suse.cz>
To: Petr Baudis <pasky@suse.cz>
Cc: Bert Wesarg <bert.wesarg@googlemail.com>,
git@vger.kernel.org, martin f krafft <madduck@debian.org>,
Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de>,
Marc Weber <marco-oweber@gmx.de>
Subject: [TopGit PATCH v2 3/3] tg-push: handle non-tgish branches
Date: Wed, 27 May 2009 10:17:01 +0200 [thread overview]
Message-ID: <1243412221-2844-1-git-send-email-bert.wesarg@googlemail.com> (raw)
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 <bert.wesarg@googlemail.com>
---
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)
next prev parent reply other threads:[~2009-05-27 8:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-27 8:16 [PATCH TopGit 1/3] tg-push: remove useless warning of missing bases for non-tgish branches Bert Wesarg
2009-05-27 8:16 ` [TopGit PATCH v2 2/3] tg-push: prevent multiple occurences of branches Bert Wesarg
2009-05-27 8:17 ` Bert Wesarg [this message]
2009-05-28 7:24 ` [TopGit PATCH v2 3/3] tg-push: handle non-tgish branches Uwe Kleine-König
2009-05-28 7:23 ` [TopGit PATCH v2 2/3] tg-push: prevent multiple occurences of branches Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1243412221-2844-1-git-send-email-bert.wesarg@googlemail.com \
--to=bert.wesarg@googlemail.com \
--cc=git@vger.kernel.org \
--cc=madduck@debian.org \
--cc=marco-oweber@gmx.de \
--cc=pasky@suse.cz \
--cc=u.kleine-koenig@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).