merge(third_party/git): Merge squashed git subtree at v2.23.0
Merge commit '1b593e1ea4' as 'third_party/git'
This commit is contained in:
commit
7ef0d62730
3629 changed files with 1139935 additions and 0 deletions
42
third_party/git/t/t6008-rev-list-submodule.sh
vendored
Executable file
42
third_party/git/t/t6008-rev-list-submodule.sh
vendored
Executable file
|
|
@ -0,0 +1,42 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2007 Johannes E. Schindelin
|
||||
#
|
||||
|
||||
test_description='git rev-list involving submodules that this repo has'
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success 'setup' '
|
||||
: > file &&
|
||||
git add file &&
|
||||
test_tick &&
|
||||
git commit -m initial &&
|
||||
echo 1 > file &&
|
||||
test_tick &&
|
||||
git commit -m second file &&
|
||||
echo 2 > file &&
|
||||
test_tick &&
|
||||
git commit -m third file &&
|
||||
|
||||
rm .git/index &&
|
||||
|
||||
: > super-file &&
|
||||
git add super-file &&
|
||||
git submodule add "$(pwd)" sub &&
|
||||
git symbolic-ref HEAD refs/heads/super &&
|
||||
test_tick &&
|
||||
git commit -m super-initial &&
|
||||
echo 1 > super-file &&
|
||||
test_tick &&
|
||||
git commit -m super-first super-file &&
|
||||
echo 2 > super-file &&
|
||||
test_tick &&
|
||||
git commit -m super-second super-file
|
||||
'
|
||||
|
||||
test_expect_success "Ilari's test" '
|
||||
git rev-list --objects super master ^super^
|
||||
'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue