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
27
third_party/git/t/t1003-read-tree-prefix.sh
vendored
Executable file
27
third_party/git/t/t1003-read-tree-prefix.sh
vendored
Executable file
|
|
@ -0,0 +1,27 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2006 Junio C Hamano
|
||||
#
|
||||
|
||||
test_description='git read-tree --prefix test.
|
||||
'
|
||||
|
||||
. ./test-lib.sh
|
||||
|
||||
test_expect_success setup '
|
||||
echo hello >one &&
|
||||
git update-index --add one &&
|
||||
tree=$(git write-tree) &&
|
||||
echo tree is $tree
|
||||
'
|
||||
|
||||
echo 'one
|
||||
two/one' >expect
|
||||
|
||||
test_expect_success 'read-tree --prefix' '
|
||||
git read-tree --prefix=two/ $tree &&
|
||||
git ls-files >actual &&
|
||||
cmp expect actual
|
||||
'
|
||||
|
||||
test_done
|
||||
Loading…
Add table
Add a link
Reference in a new issue