git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Joe Ratterman" <jratt0@gmail.com>
To: git@vger.kernel.org
Subject: Inconsistency in use of "--bare" between init & clone
Date: Thu, 13 Dec 2007 09:37:50 -0600	[thread overview]
Message-ID: <331aa8280712130737h7300c739n59ee2fce6c4e4a9@mail.gmail.com> (raw)

I've been getting ready to support my organization in a change-over to
git from cvs, and I've found a strange issue when creating bare
repositories.  The placement of the "--bare" option changes:

git --bare clone <url>  ==  "--bare" is silently ignored
git --bare init  ==  Creates an empty bare repo

git clone --bare  ==  Clones the url into a new bare repo
git init --bare  ==  Error:
        usage: git-init [-q | --quiet]
[--template=<template-directory>] [--shared]

I assume there a reason for the lack of symmetry, but I don't understand it.

Thanks,
Joe

$ git version
git version 1.5.3.7.1157.gbf82a

                 reply	other threads:[~2007-12-13 15:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=331aa8280712130737h7300c739n59ee2fce6c4e4a9@mail.gmail.com \
    --to=jratt0@gmail.com \
    --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).