Merge branch 'ab/merge-file-prefix'

"git merge-file" did not work correctly in a subdirectory.

* ab/merge-file-prefix:
  merge-file: correctly open files when in a subdir
This commit is contained in:
Junio C Hamano
2015-02-22 12:28:25 -08:00
2 changed files with 4 additions and 2 deletions

View File

@ -69,7 +69,8 @@ test_expect_success 'works in subdirectory' '
cp new1.txt dir/a.txt &&
cp orig.txt dir/o.txt &&
cp new2.txt dir/b.txt &&
( cd dir && git merge-file a.txt o.txt b.txt )
( cd dir && git merge-file a.txt o.txt b.txt ) &&
test_path_is_missing a.txt
'
cp new1.txt test.txt