Merge branch 'mw/symlinks'
commit8a342058f62d24d6ff62a0f6e81d3e60291eae94
authorJunio C Hamano <gitster@pobox.com>
Thu, 27 Feb 2014 22:01:37 +0000 (27 14:01 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Feb 2014 22:01:37 +0000 (27 14:01 -0800)
tree13e0a49a0d5c9263c861f078b37cf60d7d4d609f
parentf813f71a20304879d1379af0b03debfc198aea9e
parent655ee9ea3e6c0af57d320e84723ec3bf656cdbf7
Merge branch 'mw/symlinks'

All subcommands that take pathspecs mishandled an in-tree symbolic
link when given it as a full path from the root (which arguably is
a sick way to use pathspecs).  "git ls-files -s $(pwd)/RelNotes" in
our tree is an easy reproduction recipe.

* mw/symlinks:
  setup: don't dereference in-tree symlinks for absolute paths
  setup: add abspath_part_inside_repo() function
  t0060: add tests for prefix_path when path begins with work tree
  t0060: add test for prefix_path when path == work tree
  t0060: add test for prefix_path on symlinks via absolute paths
  t3004: add test for ls-files on symlinks via absolute paths
setup.c