subtree: t7900: delete some dead code
Signed-off-by: Luke Shumaker <lukeshu@datawire.io> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Luke Shumaker committed
Apr 27, 2021 at 15:17 UTC
63ac4f1ade9bccf4f0b863ffc95000ae1faff2a7
1 file changed
+1
-11
contrib/subtree/t/t7900-subtree.sh
+1
-11
@@ -10,7 +10,6 @@ and split subcommands of git subtree.
10
'
11
12
TEST_DIRECTORY=$(pwd)/../../../t
13
-export TEST_DIRECTORY
13
. "$TEST_DIRECTORY"/test-lib.sh
14
15
# Use our own wrapper around test-lib.sh's test_create_repo, in order
@@ -23,15 +22,6 @@ subtree_test_create_repo () {
22
git -C "$1" config log.date relative
23
}
24
26
-create () {
27
- echo "$1" >"$1" &&
28
- git add "$1"
29
-}
30
-
31
-undo () {
32
- git reset --hard HEAD~
33
-}
34
-
25
# Make sure no patch changes more than one file.
26
# The original set of commits changed only one file each.
27
# A multi-file change would imply that we pruned commits
@@ -404,7 +394,7 @@ test_expect_success 'check hash of split' '
394
(
395
cd ./"sub proj" &&
396
subdir_hash=$(git rev-parse HEAD) &&
407
- test ''"$new_hash"'' = "$subdir_hash"
397
+ test "$new_hash" = "$subdir_hash"
398
)
399
)
400
'