git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Luciano Rocha <luciano@eurotux.com>
To: "Santi Béjar" <sbejar@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: bare --init Vs --init bare
Date: Mon, 19 May 2008 21:10:49 +0100	[thread overview]
Message-ID: <20080519201049.GA20981@bit.office.eurotux.com> (raw)
In-Reply-To: <8aa486160805191232m76bbc7detdcd2d459c8e572cd@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1150 bytes --]

On Mon, May 19, 2008 at 09:32:21PM +0200, Santi Béjar wrote:
> On Mon, May 19, 2008 at 7:53 PM, Luciano Rocha <luciano@eurotux.com> wrote:
> >
> > Hello,
> >
> 
> > This is odd:
> > $ git init --bare
> > usage: git-init [-q | --quiet] [--template=<template-directory>] [--shared]
> > $ git --bare init
> > Initialized empty Git repository in /tmp/1/
> 
> The first is a flag to the init subcommand (man git-init), and the
> other is a flag to git (man git).
> 
> See also:
> 
> http://www.google.com/search?q=%22git+init+--bare%22+%22git+--bare+init%22
> 
> or equivalent
> 
> http://kerneltrap.org/mailarchive/git/2007/10/15/344050
> "should git command and git-command be equivalent?"
> 

Ok, I understand.

Still, there's a --bare command to git clone, and I had only tried
git init --bare, not the other form, and it always failed. Only today
did I learn I could do a git --bare init, from a colleague of mine.

I'd suggest allowing git init --bare, or documenting the --bare init
option.

Regards,
Luciano Rocha

-- 
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

  reply	other threads:[~2008-05-19 20:11 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 17:53 bare --init Vs --init bare Luciano Rocha
2008-05-19 19:32 ` Santi Béjar
2008-05-19 20:10   ` Luciano Rocha [this message]
2008-05-20 19:48 ` [PATCH] git-init: inform user of `git --bare init' option Luciano Rocha
2008-05-23  6:02   ` Junio C Hamano
2008-05-23 14:24     ` Luciano Rocha
2008-05-28 18:51     ` [PATCH] git-init: treat option `--bare' Luciano Rocha
2008-05-28 18:53       ` Luciano Rocha
2008-05-29  0:55         ` Junio C Hamano
2008-05-29  9:10           ` Luciano Rocha
2008-05-29 13:51           ` Johannes Schindelin
2008-05-29 18:31             ` 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=20080519201049.GA20981@bit.office.eurotux.com \
    --to=luciano@eurotux.com \
    --cc=git@vger.kernel.org \
    --cc=sbejar@gmail.com \
    /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).