Re: [PATCH] Do not allow git-init-db to be called twice in the same directory
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 27, 2005, 18:01 UTC
- Message-ID
- <Pine.LNX.4.63.0512271859250.1618@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7vlky6bi6f.fsf@assigned-by-dhcp.cox.net>
Hi,
On Tue, 27 Dec 2005, Junio C Hamano wrote:
Show 10 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes: > > >> Is there a particular reason running the current init-db twice > >> is undesirable? > > > > In my case, yes. When I do that, it means that I did not correctly > > change directories. I fscked up my private git repository twice that way. > > Maybe a warning (e.g. "rerunning in an already set up > repository") is in order?
Yeah. Or a command line parameter "--exists" without which it fails?
Ciao, Dscho