@matheusbsbs / matheus-bagliano / commits / bc3f657f71
Fork 0

t1506: drop space after redirection operator

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>

Jeff King committed Jan 24, 2020 at 19:06 UTC bc3f657f71e83fec3fba124d6faeb3df71e5e17a
1 file changed +11 -11
t/t1506-rev-parse-diagnosis.sh
+11 -11
@@ -104,35 +104,35 @@ test_expect_success 'correct relative file objects (6)' '
104 test_expect_success 'incorrect revision id' '
105 test_must_fail git rev-parse foobar:file.txt 2>error &&
106 grep "Invalid object name '"'"'foobar'"'"'." error &&
107 - test_must_fail git rev-parse foobar 2> error &&
107 + test_must_fail git rev-parse foobar 2>error &&
108 test_i18ngrep "unknown revision or path not in the working tree." error
109 '
110
111 test_expect_success 'incorrect file in sha1:path' '
112 - test_must_fail git rev-parse HEAD:nothing.txt 2> error &&
112 + test_must_fail git rev-parse HEAD:nothing.txt 2>error &&
113 grep "fatal: Path '"'"'nothing.txt'"'"' does not exist in '"'"'HEAD'"'"'" error &&
114 - test_must_fail git rev-parse HEAD:index-only.txt 2> error &&
114 + test_must_fail git rev-parse HEAD:index-only.txt 2>error &&
115 grep "fatal: Path '"'"'index-only.txt'"'"' exists on disk, but not in '"'"'HEAD'"'"'." error &&
116 (cd subdir &&
117 - test_must_fail git rev-parse HEAD:file2.txt 2> error &&
117 + test_must_fail git rev-parse HEAD:file2.txt 2>error &&
118 test_did_you_mean HEAD subdir/ file2.txt exists )
119 '
120
121 test_expect_success 'incorrect file in :path and :N:path' '
122 - test_must_fail git rev-parse :nothing.txt 2> error &&
122 + test_must_fail git rev-parse :nothing.txt 2>error &&
123 grep "fatal: Path '"'"'nothing.txt'"'"' does not exist (neither on disk nor in the index)." error &&
124 - test_must_fail git rev-parse :1:nothing.txt 2> error &&
124 + test_must_fail git rev-parse :1:nothing.txt 2>error &&
125 grep "Path '"'"'nothing.txt'"'"' does not exist (neither on disk nor in the index)." error &&
126 - test_must_fail git rev-parse :1:file.txt 2> error &&
126 + test_must_fail git rev-parse :1:file.txt 2>error &&
127 test_did_you_mean ":0" "" file.txt "is in the index" "at stage 1" &&
128 (cd subdir &&
129 - test_must_fail git rev-parse :1:file.txt 2> error &&
129 + test_must_fail git rev-parse :1:file.txt 2>error &&
130 test_did_you_mean ":0" "" file.txt "is in the index" "at stage 1" &&
131 - test_must_fail git rev-parse :file2.txt 2> error &&
131 + test_must_fail git rev-parse :file2.txt 2>error &&
132 test_did_you_mean ":0" subdir/ file2.txt "is in the index" &&
133 - test_must_fail git rev-parse :2:file2.txt 2> error &&
133 + test_must_fail git rev-parse :2:file2.txt 2>error &&
134 test_did_you_mean :0 subdir/ file2.txt "is in the index") &&
135 - test_must_fail git rev-parse :disk-only.txt 2> error &&
135 + test_must_fail git rev-parse :disk-only.txt 2>error &&
136 grep "fatal: Path '"'"'disk-only.txt'"'"' exists on disk, but not in the index." error
137 '
138