Re: [BUG] git_path() returns relative paths
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Jul 28, 2013, 09:06 UTC
- Message-ID
- <CACsJy8CAfCVtTmgtEaix6RwYm4Sj7Ot_BjuObS+qvQ=QNnQ0OA@mail.gmail.com>
- In-Reply-To
- <CALkWK0nFDyFqBPatsbQ-0mGXQ-6N5Xs9gKioknuGX9a7UiD4Fg@mail.gmail.com>
On Sun, Jul 28, 2013 at 3:49 PM, Ramkumar Ramachandra <artagnon@gmail.com> wrote:
Show 7 quoted lines
> Duy Nguyen wrote: >> I think instead of letting the kernel walk the path, emacs does it by >> itself. > > If this were true, shouldn't we be able to reproduce the behavior with > my no-submodules symlink testcase? How can it resolve symlinks in one > case, and not in the other case?
In the no-submodules symlink test case, the path given to the editor is .git/COMMIT_EDITMSG, no following ".." back in the symlink target. This bug can be reproduced without git involved:
mkdir z z/a z/b echo ha >z/a/file ln -s z/b cd b cat ../a/file emacs ../a/file # fail to open 'file'
-- Duy