Re: [BUG?] Path limiting in "git log" when run from another subdir

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

 



On Mon, Sep 24, 2012 at 2:22 PM, Nguyen Thai Ngoc Duy <pclouds@xxxxxxxxx> wrote:
> On Mon, Sep 24, 2012 at 6:59 PM, Johan Herland <johan@xxxxxxxxxxx> wrote:
>> The following works in the git.git repo:
>>
>> $ cd t
>> $ git log -- /Documentation
>> [...]
>>
>
> What version? Mine (recent master) does not work
>
> ~/w/git/t $ ../git log -- /Documentation
> fatal: '/Documentation' is outside repository

We initially found it on 1.7.9.5, and conrfirmed it on various 1.7.10
versions. A bisect reveals that this behavior changed in
v1.7.11.5-35-gf4c21e8 (Michael Haggerty: real_path(): properly handle
nonexistent top-level paths).

Does this mean that "git log -- /Documentation" never should have
worked in the first place (and was "fixed" by this commit), or that it
should work (but was broken by this commit)?

In any case, what is the _preferred_ way to path-limit "git log" to
Documentation/RelNotes, when my cwd is t/?


Thanks for your help,

...Johan

>> but the following does not:
>>
>> $ cd t
>> $ git log -- /Documentation/RelNotes
>> fatal: Could not switch to '/Documentation': No such file or directory
>>
>>
>> Is this the intended behavior?
> --
> Duy



-- 
Johan Herland, <johan@xxxxxxxxxxx>
www.herland.net
--
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]