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