Re: [PATCH] git push --track
- From
Andreas Krey <a.krey@gmx.de>
- Date
- Jan 14, 2010, 15:27 UTC
- Message-ID
- <20100114152727.GA26059@inner.home.ulmdo.de>
- In-Reply-To
- <vpqiqb4lq4q.fsf@bauges.imag.fr>
On Thu, 14 Jan 2010 15:25:57 +0000, Matthieu Moy wrote:
Show 13 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > >> Of course it'd only work if you have full ssh access, unless the git > >> server learns a new command to mkdir (in sane and approved locations). > > > > You mean a new "init" command a la "git --git-dir=bla.git init", which > > _does_ mkdir the directory. > > I think he meant > > git --git-dir=git+ssh://foo.bar/var/git/mynewthing.git init > > which doesn't.
But 'ssh foo.bar git --git-dir=/var/git/mynewthing.git init' likely would.
Probably missing a --bare somewhere; and I think that repo creation potentially needs too many things (like custom hook or access rights setup) to be done via git push. Especially since you really only need to create an empty repo, and only if you didn't clone from the push target in the first place.
Andreas