]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t6022: fix 'test' style and 'even though' typo
authorChristian Couder <christian.couder@gmail.com>
Wed, 14 Feb 2024 14:25:12 +0000 (15:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 14 Feb 2024 17:39:14 +0000 (09:39 -0800)
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6022-rev-list-missing.sh

index 211672759a2260e5a1bb572f96aad93b3d3f91e5..5f1be7abb53f2f824fc7b80865debaab5a39077b 100755 (executable)
@@ -46,9 +46,10 @@ do
                        git rev-list --objects --no-object-names \
                                HEAD ^$obj >expect.raw &&
 
-                       # Blobs are shared by all commits, so evethough a commit/tree
+                       # Blobs are shared by all commits, so evethough a commit/tree
                        # might be skipped, its blob must be accounted for.
-                       if [ $obj != "HEAD:1.t" ]; then
+                       if test $obj != "HEAD:1.t"
+                       then
                                echo $(git rev-parse HEAD:1.t) >>expect.raw &&
                                echo $(git rev-parse HEAD:2.t) >>expect.raw
                        fi &&