Re: hitting home directory's parent

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

 



On Sat, Aug 22, 2009 at 10:05 PM, Daniel
Convissor<danielc@xxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi Duy:
>
> On Sat, Aug 22, 2009 at 11:10:18AM +0700, Nguyen Thai Ngoc Duy wrote:
>>
>> I guess it tried to find .git directory upward. I think you can set
>> GIT_CEILING_DIRECTORIES to make it stop at /home/danielc. Excerpt from
>> git.txt
>
> That didn't change the situation.

I'd suggest you to degrade Git to a version earlier than 1.6.1, when
the error was not added. :-D

But did it at least change the error message? Here is what I got when
"chmod 000 /tmp/a":

/tmp/a/b/c $ cd ../..
bash: cd: ../..: Permission denied
/tmp/a/b/c $ git --help
fatal: Cannot change to '/tmp/a/b/c/..': Permission denied
/tmp/a/b/c $ GIT_CEILING_DIRECTORIES=/tmp/a/b git --help
fatal: Cannot come back to cwd: Permission denied

Looks like absolute path will cause troubles anyway this case.

> I did read a bit farther in the manual and initialized a new repository.
> Issuing "git --help" once inside that new repository works.  Requiring
> the --help command to be called from inside a repository, or even that
> it's looking for a repository at all, seems unwise.  All it should do is
> display the usage information and exit.

For simple things like --help, I agree Git should not do extra work
such as searching for Git repository, which is the cause. That was on
Jeff's plan IIRC.
-- 
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]