From: Mike Hommey <mh@glandium.org>
To: git@vger.kernel.org
Subject: Allowing push --dry-run through fetch url
Date: Fri, 6 Nov 2009 08:37:07 +0100 [thread overview]
Message-ID: <20091106073707.GA14881@glandium.org> (raw)
Hi,
I am currently considering, when I'll get some time, to dive in the git
push code to allow push --dry-run without the rights to push.
We currently have two remote configuration items for urls:
remote.<name>.url and remote.<name>.pushurl. The latter is used when
pushing and the former when pulling/fetching.
The typical use of both at the same time is to put an authenticated
value for pushurl (ssh://, for example) and an anonymous one (git://,
for example) for url.
What has been annoying me lately is that git push --dry-run asks me
for the ssh key or password. I know I could be using an ssh-agent, but
that's not the point.
It would be interesting, to me at least, that git push --dry-run can do
its job through the git:// url instead of the ssh:// one. But for now,
all that does is telling me:
fatal: The remote end hung up unexpectedly
(probably because the git server doesn't allow pushes at all)
So, before I dive in, what would you think about such a feature?
There is one thing that bothers me, though, it's that --dry-run would,
in the end, not really be a dry-run anymore, and, for example, could
not be used to validate that the ssh setup is good without actually
pushing.
Cheers,
Mike
next reply other threads:[~2009-11-06 7:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 7:37 Mike Hommey [this message]
2009-11-06 8:49 ` Allowing push --dry-run through fetch url Junio C Hamano
2009-11-06 8:59 ` Mike Hommey
2009-11-06 9:02 ` Junio C Hamano
2009-11-06 9:21 ` Mike Hommey
2009-11-06 9:44 ` Junio C Hamano
2009-11-06 9:53 ` Mike Hommey
2009-11-08 19:23 ` Junio C Hamano
2009-11-09 7:56 ` Mike Hommey
2009-12-29 11:05 ` Nanako Shiraishi
2009-12-29 16:58 ` Junio C Hamano
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=20091106073707.GA14881@glandium.org \
--to=mh@glandium.org \
--cc=git@vger.kernel.org \
/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).