Skip to content

Commit 63ac4f1

Browse files
LukeShugitster
authored andcommitted
subtree: t7900: delete some dead code
Signed-off-by: Luke Shumaker <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c4566ab commit 63ac4f1

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

contrib/subtree/t/t7900-subtree.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ and split subcommands of git subtree.
1010
'
1111

1212
TEST_DIRECTORY=$(pwd)/../../../t
13-
export TEST_DIRECTORY
1413
. "$TEST_DIRECTORY"/test-lib.sh
1514

1615
# Use our own wrapper around test-lib.sh's test_create_repo, in order
@@ -23,15 +22,6 @@ subtree_test_create_repo () {
2322
git -C "$1" config log.date relative
2423
}
2524

26-
create () {
27-
echo "$1" >"$1" &&
28-
git add "$1"
29-
}
30-
31-
undo () {
32-
git reset --hard HEAD~
33-
}
34-
3525
# Make sure no patch changes more than one file.
3626
# The original set of commits changed only one file each.
3727
# A multi-file change would imply that we pruned commits
@@ -404,7 +394,7 @@ test_expect_success 'check hash of split' '
404394
(
405395
cd ./"sub proj" &&
406396
subdir_hash=$(git rev-parse HEAD) &&
407-
test ''"$new_hash"'' = "$subdir_hash"
397+
test "$new_hash" = "$subdir_hash"
408398
)
409399
)
410400
'

0 commit comments

Comments
 (0)