git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git difftool --dir-diff error in the presence of symlinks to directories
@ 2015-06-17 22:39 Ismail Badawi
  2015-06-22  5:20 ` David Aguilar
  0 siblings, 1 reply; 2+ messages in thread
From: Ismail Badawi @ 2015-06-17 22:39 UTC (permalink / raw)
  To: git

Reproduce like this (using git 2.4.3):

git init
mkdir foo
touch foo/bar
git add .
git commit -m "Initial commit."
ln -s foo link
git add .
git commit -m "Add link to foo."
git difftool -d HEAD^ HEAD

That last command outputs:

fatal: Unable to hash /Users/isbadawi/test/link
hash-object /Users/isbadawi/test/link: command returned error: 128

Briefly looking at the 'git difftool' source it looks like it uses the
output of 'git diff --raw' and calls 'hash-object' on any object whose
mode is nonzero, including symlinks.

I'm not sure what the right thing to do here is -- just thought I'd
report this failure.

Thanks,
Ismail

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-06-22  5:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-17 22:39 git difftool --dir-diff error in the presence of symlinks to directories Ismail Badawi
2015-06-22  5:20 ` David Aguilar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).