mirror of
https://github.com/git/git.git
synced 2026-03-29 01:50:08 +01:00
Merge branch 'master' into next
* master: t/README: document --root option Makefile: default pager on AIX to "more" merge-recursive: demonstrate an incorrect conflict with submodule Makefile: default pager on AIX to "more"
This commit is contained in:
1
Makefile
1
Makefile
@@ -930,6 +930,7 @@ ifeq ($(uname_S),NetBSD)
|
||||
HAVE_PATHS_H = YesPlease
|
||||
endif
|
||||
ifeq ($(uname_S),AIX)
|
||||
DEFAULT_PAGER = more
|
||||
NO_STRCASESTR=YesPlease
|
||||
NO_MEMMEM = YesPlease
|
||||
NO_MKDTEMP = YesPlease
|
||||
|
||||
6
t/README
6
t/README
@@ -84,6 +84,12 @@ appropriately before running "make".
|
||||
implied by other options like --valgrind and
|
||||
GIT_TEST_INSTALLED.
|
||||
|
||||
--root=<directory>::
|
||||
Create "trash" directories used to store all temporary data during
|
||||
testing under <directory>, instead of the t/ directory.
|
||||
Using this option with a RAM-based filesystem (such as tmpfs)
|
||||
can massively speed up the test suite.
|
||||
|
||||
You can also set the GIT_TEST_INSTALLED environment variable to
|
||||
the bindir of an existing git installation to test that installation.
|
||||
You still need to have built this git sandbox, from which various
|
||||
|
||||
@@ -22,6 +22,7 @@ test_expect_success 'setup 1' '
|
||||
git branch df-2 &&
|
||||
git branch df-3 &&
|
||||
git branch remove &&
|
||||
git branch submod &&
|
||||
|
||||
echo hello >>a &&
|
||||
cp a d/e &&
|
||||
@@ -236,6 +237,17 @@ test_expect_success 'setup 6' '
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_expect_success 'setup 7' '
|
||||
|
||||
git checkout submod &&
|
||||
git rm d/e &&
|
||||
test_tick &&
|
||||
git commit -m "remove d/e" &&
|
||||
git update-index --add --cacheinfo 160000 $c1 d &&
|
||||
test_tick &&
|
||||
git commit -m "make d/ a submodule"
|
||||
'
|
||||
|
||||
test_expect_success 'merge-recursive simple' '
|
||||
|
||||
rm -fr [abcd] &&
|
||||
@@ -551,4 +563,21 @@ test_expect_success 'merge removes empty directories' '
|
||||
test_must_fail test -d d
|
||||
'
|
||||
|
||||
test_expect_failure 'merge-recursive simple w/submodule' '
|
||||
|
||||
git checkout submod &&
|
||||
git merge remove
|
||||
'
|
||||
|
||||
test_expect_failure 'merge-recursive simple w/submodule result' '
|
||||
|
||||
git ls-files -s >actual &&
|
||||
(
|
||||
echo "100644 $o5 0 a"
|
||||
echo "100644 $o0 0 c"
|
||||
echo "160000 $c1 0 d"
|
||||
) >expected &&
|
||||
test_cmp expected actual
|
||||
'
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user