Re: git's is_inside_git_dir too strict?

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

 



On 3/7/07, Shawn O. Pearce <spearce@xxxxxxxxxxx> wrote:
Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> 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
-
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]