git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v4 14/19] test: pull-options: revert unnecessary changes

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Dec 8, 2020, 00:26 UTC
Message-ID
<20201208002648.1370414-15-felipe.contreras@gmail.com>
In-Reply-To
<20201208002648.1370414-1-felipe.contreras@gmail.com>

Commit d18c950a69 (pull: warn if the user didn't say whether to rebase or to merge, 2020-03-09) changed a number of tests in t5521 and added some new tests in t7601, but it was not explained why the changes in t5521 were made.

The reason seems to be to silence the warnings while running the tests, but we want to see the warnings if they happen.

Cc: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
---
 t/t5521-pull-options.sh | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/t/t5521-pull-options.sh b/t/t5521-pull-options.sh
index db1a381cd9..1a4fe2583a 100755
--- a/t/t5521-pull-options.sh
+++ b/t/t5521-pull-options.sh
@@ -11,10 +11,10 @@ test_expect_success 'setup' '
 	 git commit -m one)
 '
 
-test_expect_success 'git pull -q --no-rebase' '
+test_expect_success 'git pull -q' '
 	mkdir clonedq &&
 	(cd clonedq && git init &&
-	git pull -q --no-rebase "../parent" >out 2>err &&
+	git pull -q "../parent" >out 2>err &&
 	test_must_be_empty err &&
 	test_must_be_empty out)
 '
@@ -30,10 +30,10 @@ test_expect_success 'git pull -q --rebase' '
 	test_must_be_empty out)
 '
 
-test_expect_success 'git pull --no-rebase' '
+test_expect_success 'git pull' '
 	mkdir cloned &&
 	(cd cloned && git init &&
-	git pull --no-rebase "../parent" >out 2>err &&
+	git pull "../parent" >out 2>err &&
 	test -s err &&
 	test_must_be_empty out)
 '
@@ -46,10 +46,10 @@ test_expect_success 'git pull --rebase' '
 	test_must_be_empty out)
 '
 
-test_expect_success 'git pull -v --no-rebase' '
+test_expect_success 'git pull -v' '
 	mkdir clonedv &&
 	(cd clonedv && git init &&
-	git pull -v --no-rebase "../parent" >out 2>err &&
+	git pull -v "../parent" >out 2>err &&
 	test -s err &&
 	test_must_be_empty out)
 '
@@ -62,25 +62,25 @@ test_expect_success 'git pull -v --rebase' '
 	test_must_be_empty out)
 '
 
-test_expect_success 'git pull -v -q --no-rebase' '
+test_expect_success 'git pull -v -q' '
 	mkdir clonedvq &&
 	(cd clonedvq && git init &&
-	git pull -v -q --no-rebase "../parent" >out 2>err &&
+	git pull -v -q "../parent" >out 2>err &&
 	test_must_be_empty out &&
 	test_must_be_empty err)
 '
 
-test_expect_success 'git pull -q -v --no-rebase' '
+test_expect_success 'git pull -q -v' '
 	mkdir clonedqv &&
 	(cd clonedqv && git init &&
-	git pull -q -v --no-rebase "../parent" >out 2>err &&
+	git pull -q -v "../parent" >out 2>err &&
 	test_must_be_empty out &&
 	test -s err)
 '
 test_expect_success 'git pull --cleanup errors early on invalid argument' '
 	mkdir clonedcleanup &&
 	(cd clonedcleanup && git init &&
-	test_must_fail git pull --no-rebase --cleanup invalid "../parent" >out 2>err &&
+	test_must_fail git pull --cleanup invalid "../parent" >out 2>err &&
 	test_must_be_empty out &&
 	test -s err)
 '
-- 
2.29.2
Previous: Felipe ContrerasNext: Felipe Contreras
Message 14 of 21 in “pull: default ff-only mode”
  1. 00/19 pull: default ff-only modeFelipe Contreras, Dec 8, 2020
  2. 01/19 doc: pull: explain what is a fast-forwardFelipe Contreras, Dec 8, 2020
  3. 02/19 pull: improve default warningFelipe Contreras, Dec 8, 2020
  4. 03/19 pull: refactor fast-forward checkFelipe Contreras, Dec 8, 2020
  5. 04/19 pull: cleanup autostash checkFelipe Contreras, Dec 8, 2020
  6. 06/19 pull: move default warningFelipe Contreras, Dec 8, 2020
  7. 05/19 pull: trivial cleanupFelipe Contreras, Dec 8, 2020
  8. 07/19 pull: display default warning only when non-ffFelipe Contreras, Dec 8, 2020
  9. 08/19 pull: trivial whitespace style fixFelipe Contreras, Dec 8, 2020
  10. 09/19 pull: introduce --merge optionFelipe Contreras, Dec 8, 2020
  11. 10/19 pull: show warning with --ffFelipe Contreras, Dec 8, 2020
  12. 11/19 rebase: add REBASE_DEFAULTFelipe Contreras, Dec 8, 2020
  13. 12/19 pull: move configurations fetchesFelipe Contreras, Dec 8, 2020
  14. 14/19 test: pull-options: revert unnecessary changesFelipe Contreras, Dec 8, 2020
  15. 15/19 pull: trivial memory fixFelipe Contreras, Dec 8, 2020
  16. 13/19 test: merge-pull-config: trivial cleanupFelipe Contreras, Dec 8, 2020
  17. 17/19 pull: add pull.mode=ff-onlyFelipe Contreras, Dec 8, 2020
  18. 19/19 future: pull: enable ff-only mode by defaultFelipe Contreras, Dec 8, 2020
  19. 16/19 pull: add pull.modeFelipe Contreras, Dec 8, 2020
  20. 18/19 pull: advice of future changesFelipe Contreras, Dec 8, 2020
  21. Felipe ContrerasDec 8, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.