Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@datawire.io>2021-04-28 00:17:25 +0300
committerJunio C Hamano <gitster@pobox.com>2021-04-28 10:47:17 +0300
commit63ac4f1ade9bccf4f0b863ffc95000ae1faff2a7 (patch)
tree78db0ef099471e741a13083ba42fe7bc7f563831 /contrib/subtree
parentc4566ab429c5a46a91c5b3bd351c545b91a2e593 (diff)
subtree: t7900: delete some dead code
Signed-off-by: Luke Shumaker <lukeshu@datawire.io> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/subtree')
-rwxr-xr-xcontrib/subtree/t/t7900-subtree.sh12
1 files changed, 1 insertions, 11 deletions
diff --git a/contrib/subtree/t/t7900-subtree.sh b/contrib/subtree/t/t7900-subtree.sh
index 76183153c9..421ed9f003 100755
--- a/contrib/subtree/t/t7900-subtree.sh
+++ b/contrib/subtree/t/t7900-subtree.sh
@@ -10,7 +10,6 @@ and split subcommands of git subtree.
'
TEST_DIRECTORY=$(pwd)/../../../t
-export TEST_DIRECTORY
. "$TEST_DIRECTORY"/test-lib.sh
# Use our own wrapper around test-lib.sh's test_create_repo, in order
@@ -23,15 +22,6 @@ subtree_test_create_repo () {
git -C "$1" config log.date relative
}
-create () {
- echo "$1" >"$1" &&
- git add "$1"
-}
-
-undo () {
- git reset --hard HEAD~
-}
-
# Make sure no patch changes more than one file.
# The original set of commits changed only one file each.
# A multi-file change would imply that we pruned commits
@@ -404,7 +394,7 @@ test_expect_success 'check hash of split' '
(
cd ./"sub proj" &&
subdir_hash=$(git rev-parse HEAD) &&
- test ''"$new_hash"'' = "$subdir_hash"
+ test "$new_hash" = "$subdir_hash"
)
)
'