diff options
Diffstat (limited to 't/t6300-for-each-ref.sh')
-rwxr-xr-x | t/t6300-for-each-ref.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t6300-for-each-ref.sh b/t/t6300-for-each-ref.sh index 7663a3661f..18a9e2565c 100755 --- 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 |