From: Thomas Rast <trast@student.ethz.ch>
To: "Lasse Kliemann" <lasse-gmane-git-2009@mail.plastictree.net>
Cc: git@vger.kernel.org
Subject: Re: gitosis: how to create absolutely empty repos
Date: Thu, 26 Feb 2009 10:23:43 +0100 [thread overview]
Message-ID: <200902261023.46700.trast@student.ethz.ch> (raw)
In-Reply-To: <go47ma$5n8$1@ger.gmane.org>
[-- Attachment #1: Type: text/plain, Size: 950 bytes --]
Lasse Kliemann wrote:
> Here the docs say to add some files and to do a commit. However,
> I want an absolutely empty repos created, so I skip this step.
>
> $ git push origin master:refs/heads/master
> Initialized empty Git repository in /home/git/repositories/test.git/
> error: src refspec master does not match any.
> fatal: The remote end hung up unexpectedly
> error: failed to push some refs to 'ext:test.git'
You can do "anything" to the repository and gitosis will create it.
For example, doing an invalid push will work (you'll need to do this
in a git repository to make git-push happy, but it doesn't matter what
it contains):
git push gitosis@server.example.com:repo.git :master
Note that _cloning_ such a repository is only possible since 86ac751
(Allow cloning an empty repository, 2009-01-23), which is not in any
released version yet, but will be in 1.6.2.
--
Thomas Rast
trast@{inf,student}.ethz.ch
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-02-26 9:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-25 19:54 gitosis: how to create absolutely empty repos Lasse Kliemann
2009-02-26 9:23 ` Thomas Rast [this message]
2009-02-26 11:54 ` Lasse Kliemann
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=200902261023.46700.trast@student.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=lasse-gmane-git-2009@mail.plastictree.net \
/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).