[oe-commits] Saul Wold : create-pull-request: Fix git request-pull
git at git.openembedded.org
git at git.openembedded.org
Sun Feb 8 08:00:48 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 5ffa98a95317e6bea436e4372b9202f4da0ce2ae
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=5ffa98a95317e6bea436e4372b9202f4da0ce2ae
Author: Saul Wold <sgw at linux.intel.com>
Date: Tue Feb 3 09:08:29 2015 -0800
create-pull-request: Fix git request-pull
Signed-off-by: Saul Wold <sgw at linux.intel.com>
---
scripts/create-pull-request | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 503248b..d83362f 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -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
More information about the Openembedded-commits
mailing list