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] tg-push: don't accept non-tgish branches to push
Date: Tue, 26 May 2009 23:46:22 +0200 [thread overview]
Message-ID: <1243374382-14828-1-git-send-email-bert.wesarg@googlemail.com> (raw)
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 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tg-push.sh b/tg-push.sh
index c813927..1d7a8a7 100644
--- a/tg-push.sh
+++ b/tg-push.sh
@@ -42,7 +42,8 @@ if [ -z "$branches" ]; then
fi
for name in $branches; do
- ref_exists "$name" || die "detached HEAD? Can't push $name"
+ ref_exists "refs/top-bases/$name" ||
+ die "not a TopGit-controlled branch: $name"
done
_listfile="$(mktemp -t tg-push-listfile.XXXXXX)"
--
tg: (8ec0303..) bw/push-fixes-2 (depends on: bw/push-fixes)
next reply other threads:[~2009-05-26 21:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-26 21:46 Bert Wesarg [this message]
2009-05-27 7:23 ` [TopGit PATCH] tg-push: don't accept non-tgish branches to push 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=1243374382-14828-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).