mirror of
https://github.com/release-engineering/dist-git.git
synced 2025-02-23 15:02:54 +00:00
config: mkbranch
This commit is contained in:
parent
5faea74619
commit
dbe1877ac3
2 changed files with 11 additions and 2 deletions
|
@ -30,7 +30,6 @@ IGNORE=
|
|||
BRANCH=""
|
||||
PACKAGES=""
|
||||
SRC_BRANCH="master"
|
||||
AUTHOR="Fedora Release Engineering <rel-eng@lists.fedoraproject.org>"
|
||||
|
||||
Usage() {
|
||||
cat <<EOF
|
||||
|
@ -75,6 +74,11 @@ while [ -n "$1" ] ; do
|
|||
BRANCH=$1/master
|
||||
;;
|
||||
|
||||
--default-branch-author )
|
||||
shift
|
||||
AUTHOR=$1
|
||||
;;
|
||||
|
||||
* )
|
||||
if [ -z "$BRANCH" ] ; then
|
||||
BRANCH="$1"
|
||||
|
@ -92,6 +96,10 @@ if [ -z "$BRANCH" -o -z "$PACKAGES" ] ; then
|
|||
exit -1
|
||||
fi
|
||||
|
||||
if [ -z $AUTHOR ]; then
|
||||
AUTHOR="Fedora Release Engineering <rel-eng@lists.fedoraproject.org>"
|
||||
fi
|
||||
|
||||
|
||||
# Sanity checks before we start doing damage
|
||||
NEWP=
|
||||
|
|
|
@ -125,7 +125,8 @@ def _create_branch(pkgname, branch, existing_branches):
|
|||
return
|
||||
|
||||
try:
|
||||
_invoke(MKBRANCH, [branch, pkgname])
|
||||
_invoke(MKBRANCH, ["--default-branch-author", pipes.quote(DEFAULT_BRANCH_AUTHOR),
|
||||
branch, pkgname])
|
||||
except ProcessError, e:
|
||||
if e.returnCode == 255:
|
||||
# This is a warning, not an error
|
||||
|
|
Loading…
Add table
Reference in a new issue