create-pull-request: Fix git request-pull
(From OE-Core rev: 5ffa98a95317e6bea436e4372b9202f4da0ce2ae) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5a4e20a73f
commit
dbfed41b76
|
@ -178,7 +178,13 @@ git format-patch -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow --
|
|||
# Customize the cover letter
|
||||
CL="$ODIR/0000-cover-letter.patch"
|
||||
PM="$ODIR/pull-msg"
|
||||
git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM"
|
||||
GIT_VERSION=$(`git --version` | tr -d '[:alpha:][:space:].')
|
||||
NEWER_GIT_VERSION=210
|
||||
if [ $GIT_VERSION -lt $NEWER_GIT_VERSION ]; then
|
||||
git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM"
|
||||
else
|
||||
git request-pull $RELATIVE_TO $REMOTE_URL :$BRANCH >> "$PM"
|
||||
fi
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "ERROR: git request-pull reported an error"
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue