]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1506: drop space after redirection operator
authorJeff King <peff@peff.net>
Sat, 25 Jan 2020 00:06:31 +0000 (19:06 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 28 Jan 2020 22:41:40 +0000 (14:41 -0800)
Some (but not all!) redirections in this file are spelled "2> error".
Let's switch them to our usual style.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1506-rev-parse-diagnosis.sh

index 6d951ca015912062fba4a938fdb560c10641ca6d..50251da35de6fdb70269fad275f94f3434c8eea5 100755 (executable)
@@ -104,35 +104,35 @@ test_expect_success 'correct relative file objects (6)' '
 test_expect_success 'incorrect revision id' '
        test_must_fail git rev-parse foobar:file.txt 2>error &&
        grep "Invalid object name '"'"'foobar'"'"'." error &&
-       test_must_fail git rev-parse foobar 2> error &&
+       test_must_fail git rev-parse foobar 2>error &&
        test_i18ngrep "unknown revision or path not in the working tree." error
 '
 
 test_expect_success 'incorrect file in sha1:path' '
-       test_must_fail git rev-parse HEAD:nothing.txt 2> error &&
+       test_must_fail git rev-parse HEAD:nothing.txt 2>error &&
        grep "fatal: Path '"'"'nothing.txt'"'"' does not exist in '"'"'HEAD'"'"'" error &&
-       test_must_fail git rev-parse HEAD:index-only.txt 2> error &&
+       test_must_fail git rev-parse HEAD:index-only.txt 2>error &&
        grep "fatal: Path '"'"'index-only.txt'"'"' exists on disk, but not in '"'"'HEAD'"'"'." error &&
        (cd subdir &&
-        test_must_fail git rev-parse HEAD:file2.txt 2> error &&
+        test_must_fail git rev-parse HEAD:file2.txt 2>error &&
         test_did_you_mean HEAD subdir/ file2.txt exists )
 '
 
 test_expect_success 'incorrect file in :path and :N:path' '
-       test_must_fail git rev-parse :nothing.txt 2> error &&
+       test_must_fail git rev-parse :nothing.txt 2>error &&
        grep "fatal: Path '"'"'nothing.txt'"'"' does not exist (neither on disk nor in the index)." error &&
-       test_must_fail git rev-parse :1:nothing.txt 2> error &&
+       test_must_fail git rev-parse :1:nothing.txt 2>error &&
        grep "Path '"'"'nothing.txt'"'"' does not exist (neither on disk nor in the index)." error &&
-       test_must_fail git rev-parse :1:file.txt 2> error &&
+       test_must_fail git rev-parse :1:file.txt 2>error &&
        test_did_you_mean ":0" "" file.txt "is in the index" "at stage 1" &&
        (cd subdir &&
-        test_must_fail git rev-parse :1:file.txt 2> error &&
+        test_must_fail git rev-parse :1:file.txt 2>error &&
         test_did_you_mean ":0" "" file.txt "is in the index" "at stage 1" &&
-        test_must_fail git rev-parse :file2.txt 2> error &&
+        test_must_fail git rev-parse :file2.txt 2>error &&
         test_did_you_mean ":0" subdir/ file2.txt "is in the index" &&
-        test_must_fail git rev-parse :2:file2.txt 2> error &&
+        test_must_fail git rev-parse :2:file2.txt 2>error &&
         test_did_you_mean :0 subdir/ file2.txt "is in the index") &&
-       test_must_fail git rev-parse :disk-only.txt 2> error &&
+       test_must_fail git rev-parse :disk-only.txt 2>error &&
        grep "fatal: Path '"'"'disk-only.txt'"'"' exists on disk, but not in the index." error
 '