fetch: align all "remote -> local" output
[gitweb.git] / t / t5510-fetch.sh
index 454d896390c03667442ce12925066b14593b3cd1..f50497eaa14c799680821eff4de61f47a63ab48b 100755 (executable)
@@ -688,4 +688,19 @@ test_expect_success 'fetching with auto-gc does not lock up' '
        )
 '
 
+test_expect_success 'fetch aligned output' '
+       git clone . full-output &&
+       test_commit looooooooooooong-tag &&
+       (
+               cd full-output &&
+               git fetch origin 2>&1 | \
+                       grep -e "->" | cut -c 22- >../actual
+       ) &&
+       cat >expect <<-\EOF &&
+       master               -> origin/master
+       looooooooooooong-tag -> looooooooooooong-tag
+       EOF
+       test_cmp expect actual
+'
+
 test_done