Re: git's is_inside_git_dir too strict?
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Mar 7, 2007, 16:12 UTC
- Message-ID
- <fcaeb9bf0703070812y27425b07pf78fbdf14898b360@mail.gmail.com>
- In-Reply-To
- <20070307155307.GC27596@spearce.org>
On 3/7/07, Shawn O. Pearce <spearce@spearce.org> wrote:
Show 8 quoted lines
> Nguyen Thai Ngoc Duy <pclouds@gmail.com> 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