]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t7004: one command per line
authorAbdAlRahman Gad <abdobngad@gmail.com>
Thu, 8 Aug 2024 16:32:01 +0000 (19:32 +0300)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 Aug 2024 17:27:00 +0000 (10:27 -0700)
One of the tests in t7004 has multiple commands on a single line,
which is discouraged. Adapt these by splitting up these into one
line per command.

Signed-off-by: AbdAlRahman Gad <abdobngad@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh

index 3100a4c2190b4f2451ca72c3af8e6fe6d93d7f30..09ce287559e1c5d9d814b9842fbfc6214c5bc2a1 100755 (executable)
@@ -213,9 +213,11 @@ mytag
 EOF
 test_expect_success \
        'trying to delete tags without params should succeed and do nothing' '
-       git tag -l >actual && test_cmp expect actual &&
+       git tag -l >actual &&
+       test_cmp expect actual &&
        git tag -d &&
-       git tag -l >actual && test_cmp expect actual
+       git tag -l >actual &&
+       test_cmp expect actual
 '
 
 test_expect_success \