blob: 824fd1ebd5ab3281a4fe3894b2fa5f04a0992921 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/bash
set -e
. tests/lib
t-tstunt-parsechangelog
t-prep-newpackage example 1.0
cd $p
revision=1
t-dgit build
t-dgit push --new
tagref=`t-v-tag`
tagname=${tn#refs/tags}
(set -e
cd $dgitrepo
git tag -m UNWANTED unwanted dgit/sid)
fetch-check () {
t-dgit fetch
t-ref-same-exact $tagref
t-refs-notexist refs/tags/unwanted
}
t-ref-same-exact $tagref
fetch-check
git tag -d $tagname
fetch-check
git tag -f -m BOGUS $tagname HEAD
t-refs-same-start
t-ref-same-exact $tagref
fetch-check
t-ok
|