Merge branch 'mm/detach-at-HEAD-reflog'
[gitweb.git] / t / t6300-for-each-ref.sh
index d6c9e627acd9d7ee997790ef71bd5aa7db53c90f..03873b09d1a4480549e1b8ab92fc3780fb874d89 100755 (executable)
@@ -263,6 +263,16 @@ test_expect_success 'Check format of strftime-local date fields' '
        test_cmp expected actual
 '
 
+test_expect_success 'exercise strftime with odd fields' '
+       echo >expected &&
+       git for-each-ref --format="%(authordate:format:)" refs/heads >actual &&
+       test_cmp expected actual &&
+       long="long format -- $_z40$_z40$_z40$_z40$_z40$_z40$_z40" &&
+       echo $long >expected &&
+       git for-each-ref --format="%(authordate:format:$long)" refs/heads >actual &&
+       test_cmp expected actual
+'
+
 cat >expected <<\EOF
 refs/heads/master
 refs/remotes/origin/master