From: Nguyen Thai Ngoc Duy Date: Wed, 07 Mar 2007 16:12:57 GMT Subject: Re: git's is_inside_git_dir too strict? Message-ID: In-Reply-To: <20070307155307.GC27596@spearce.org> On 3/7/07, Shawn O. Pearce wrote: > Nguyen Thai Ngoc Duy wrote: > > It was run in /home/pclouds/blog/data, which is the working directory > > of data.git. > > Why not just symlink it? > > cd /home/pclouds/blog/data > ln -s ../data.git .git It's currently my workaround. > But really, why is your Git repository for the working directory > outside of the working directory? Why not just move data.git to > data/.git ? The directory "data" is automatically manipulated by scripts. I feel it safer for data.git being outside of data so if I make any mistake, data.git _might_ remain intact. You see, if I link data/.git to data.git, my scripts' bugs might affect data.git too. > -- > Shawn. > -- Duy