Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
ref-filter: introduce refname_atom_parser()
[gitweb.git]
/
t
/
t6300-for-each-ref.sh
diff --git
a/t/t6300-for-each-ref.sh
b/t/t6300-for-each-ref.sh
index 7663a3661f999f17e66766ea67279f9d350cd29c..18a9e2565cf0a5f5838aaf2acffdd1b39957ebd1 100755
(executable)
--- a/
t/t6300-for-each-ref.sh
+++ b/
t/t6300-for-each-ref.sh
@@
-624,4
+624,13
@@
test_expect_success 'Verify usage of %(symref:short) atom' '
test_cmp expected actual
'
+cat >expected <<EOF
+master
+EOF
+
+test_expect_success 'Verify usage of %(symref:strip) atom' '
+ git for-each-ref --format="%(symref:strip=2)" refs/heads/sym > actual &&
+ test_cmp expected actual
+'
+
test_done