From: Junio C Hamano Date: Tue, 03 Mar 2009 07:55:51 GMT Subject: Re: Subject: [PATCH] Push to create Message-ID: <7vy6vnf3aw.fsf@gitster.siamese.dyndns.org> In-Reply-To: <20090303070937.GB30609@coredump.intra.peff.net> Jeff King writes: > If you are going to limit it in that way, wouldn't it be better to do it > entirely client-side? As in, "git push --create remote" will literally > do: > > ssh remote_host "mkdir -p remote_dir && cd remote_dir && git init --bare" > > ? Then you don't have to care about whether the remote side is recent > enough to support this, and there are no potential security issues; git > is merely saving you from typing the commands you could have done > yourself. As with the previous "git init --remote" patch, my design constraints includes keeping the door open for "git shell" users to optionally allow this mode of operation.