File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 13
13
CHANGELOG=ChangeLog
14
14
AUTHORS=AUTHORS
15
15
NEWS=NEWS
16
+ : ${mainbranch:= main}
16
17
17
18
error () {
18
19
echo " $@ " 1>&2
@@ -38,8 +39,8 @@ getgitbranch() {
38
39
git rev-parse --abbrev-ref HEAD
39
40
}
40
41
41
- if [ " $( getgitbranch) " != " main " ]; then
42
- fatal " current branch '$( getgitbranch) ' is not 'main '"
42
+ if [ " $( getgitbranch) " != " ${mainbranch} " ]; then
43
+ fatal " current branch '$( getgitbranch) ' is not '${mainbranch} '"
43
44
fi
44
45
45
46
if [ " x$2 " = " x" ]; then
@@ -82,7 +83,7 @@ echo "updating to ${NEWVERSION}"
82
83
OK=false
83
84
mkdir debian
84
85
cp " ${CHANGELOG} " debian/changelog
85
- gbp dch -R --since " v${OLDVERSION} " -N " ${NEWVERSION} " && cat debian/changelog > ${CHANGELOG} && OK=true
86
+ gbp dch -R --since " v${OLDVERSION} " -N " ${NEWVERSION} " --debian-branch= " ${mainbranch} " && cat debian/changelog > " ${CHANGELOG} " && OK=true
86
87
rm -rf debian
87
88
88
89
if [ " x${OK} " = " xtrue" ]; then
You can’t perform that action at this time.
0 commit comments