X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1300-repo-config.sh;h=afe7e663fb96484474f69af51268d42c78a04185;hb=ac083c47ea226b470afab39d975e718a475a3c78;hp=a675cbb51b5dafad22dd494784a0b4c8ec396db3;hpb=998b912927281a871e8d379e2b3a4385c775c4fe;p=git.git diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index a675cbb51..afe7e663f 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -427,13 +427,13 @@ cat > expect << EOF weird EOF -test_expect_success "rename succeeded" "git diff expect .git/config" +test_expect_success "rename succeeded" "test_cmp expect .git/config" test_expect_success "rename non-existing section" ' ! git config --rename-section branch."world domination" branch.drei ' -test_expect_success "rename succeeded" "git diff expect .git/config" +test_expect_success "rename succeeded" "test_cmp expect .git/config" test_expect_success "rename another section" \ 'git config --rename-section branch."1 234 blabl/a" branch.drei' @@ -449,7 +449,7 @@ cat > expect << EOF weird EOF -test_expect_success "rename succeeded" "git diff expect .git/config" +test_expect_success "rename succeeded" "test_cmp expect .git/config" cat >> .git/config << EOF [branch "zwei"] a = 1 [branch "vier"] @@ -465,7 +465,7 @@ weird EOF test_expect_success "section was removed properly" \ - "git diff -u expect .git/config" + "test_cmp expect .git/config" rm .git/config