EOF
test_expect_success \
'trying to delete tags without params should succeed and do nothing' '
- git tag -l > actual && test_cmp expect actual &&
+ git tag -l >actual && test_cmp expect actual &&
git tag -d &&
- git tag -l > actual && test_cmp expect actual
+ git tag -l >actual && test_cmp expect actual
'
test_expect_success \
git tag a1 &&
git tag v1.0 &&
git tag t210 &&
- git tag -l > actual &&
+ git tag -l >actual &&
test_cmp expect actual &&
- git tag > actual &&
+ git tag >actual &&
test_cmp expect actual
'
test_expect_success \
'listing tags with substring as pattern must print those matching' '
rm *a* &&
- git tag -l "*a*" > current &&
+ git tag -l "*a*" >current &&
test_cmp expect current
'
EOF
test_expect_success \
'listing tags with a suffix as pattern must print those matching' '
- git tag -l "*.1" > actual &&
+ git tag -l "*.1" >actual &&
test_cmp expect actual
'
EOF
test_expect_success \
'listing tags with a prefix as pattern must print those matching' '
- git tag -l "t21*" > actual &&
+ git tag -l "t21*" >actual &&
test_cmp expect actual
'
EOF
test_expect_success \
'listing tags using a name as pattern must print that one matching' '
- git tag -l a1 > actual &&
+ git tag -l a1 >actual &&
test_cmp expect actual
'
EOF
test_expect_success \
'listing tags using a name as pattern must print that one matching' '
- git tag -l v1.0 > actual &&
+ git tag -l v1.0 >actual &&
test_cmp expect actual
'
EOF
test_expect_success \
'listing tags with ? in the pattern should print those matching' '
- git tag -l "v1.?.?" > actual &&
+ git tag -l "v1.?.?" >actual &&
test_cmp expect actual
'
test_expect_success \
'listing tags using v.* should print nothing because none have v.' '
- git tag -l "v.*" > actual &&
+ git tag -l "v.*" >actual &&
test_must_be_empty actual
'
EOF
test_expect_success \
'listing tags using v* should print only those having v' '
- git tag -l "v*" > actual &&
+ git tag -l "v*" >actual &&
test_cmp expect actual
'
git tag -v emptyfile-signed-tag
'
-printf '\n\n \n\t\nLeading blank lines\n' > sigblanksfile
+printf '\n\n \n\t\nLeading blank lines\n' >sigblanksfile
printf '\n\t \t \nRepeated blank lines\n' >>sigblanksfile
printf '\n\n\nTrailing spaces \t \n' >>sigblanksfile
printf '\nTrailing blank lines\n\n\t \n\n' >>sigblanksfile
test_expect_success \
'message in editor has initial comment' '
- ! (GIT_EDITOR=cat git tag -a initial-comment > actual)
+ ! (GIT_EDITOR=cat git tag -a initial-comment >actual)
'
test_expect_success 'message in editor has initial comment: first line' '
'
get_tag_header reuse $commit commit $time >expect
-echo "An annotation to be reused" >> expect
+echo "An annotation to be reused" >>expect
test_expect_success \
'overwriting an annotated tag should use its previous body' '
git tag -a -m "An annotation to be reused" reuse &&
# simple linear checks of --continue
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1
test_must_be_empty actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v2.0
EOF
test_cmp expected actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1
test_must_be_empty actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1
test_expect_success 'creating simple branch' '
git branch stable v2.0 &&
git checkout stable &&
- echo foo-3.0 > foo &&
+ echo foo-3.0 >foo &&
git commit foo -m fourth &&
git tag v3.0
'
hash4=$(git rev-parse HEAD)
-cat > expected <<EOF
+cat >expected <<EOF
v3.0
EOF
test_cmp expected actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1
git tag v4.0
'
-cat > expected <<EOF
+cat >expected <<EOF
v4.0
EOF
test_cmp expected actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1
test_cmp expected actual
"
-cat > expected <<EOF
+cat >expected <<EOF
v0.2.1
v1.0
v1.0.1