Allow contrib new-workdir to link into bare repositories
commit2e4aef58932cdb345893103d77823a9dd6a146a6
authorShawn O. Pearce <spearce@spearce.org>
Sun, 27 May 2007 03:09:27 +0000 (26 23:09 -0400)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 May 2007 07:27:21 +0000 (29 00:27 -0700)
tree8d3d21c429084afe07a48231b9d71b495a7d3cce
parentb33271808ba3fdbad66cfc3827b8849a1f3095bc
Allow contrib new-workdir to link into bare repositories

On one particular system I like to keep a cluster of bare Git
repositories and spawn new-workdirs off of them.  Since the bare
repositories don't have working directories associated with them
they don't have a .git/ subdirectory that hosts the repository we
are linking to.

Using a bare repository as the backing repository for a workdir
created by this script does require that the user delete core.bare
from the repository's configuration file, so that Git auto-senses
the bareness of a repository based on pathname information, and
not based on the config file.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/workdir/git-new-workdir