Inconsistency in use of "--bare" between init & clone

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux