diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2015-03-04 01:29:53 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-03-10 10:47:46 +0000 |
commit | 370e7302168b3c3a30e1d8a613b6a286b6650859 (patch) | |
tree | ee7828fb6de8426f7a6e7633f53f02bdd2ffb438 /scripts | |
parent | 72ee285fbe7a72f84a14cf6c9f2ab83b22821783 (diff) | |
download | poky-370e7302168b3c3a30e1d8a613b6a286b6650859.tar.gz |
create-pull-request: fix git GIT_VERSION
If the git version is 1.7.9.5, then 1795 is bigger than 210 which causes
errors like:
fatal: No such ref: :rbt/bash
fatal: Needed a single revision
ERROR: git request-pull reported an error
Use the first 3 numbers to fix the problem.
(From OE-Core rev: d23a1d7df849a2a7d338b2805bba7694717cbe65)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-pull-request | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request index d83362f7f4..97ed874e7f 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request | |||
@@ -178,7 +178,7 @@ git format-patch -M40 --subject-prefix="$PREFIX" -n -o $ODIR --thread=shallow -- | |||
178 | # Customize the cover letter | 178 | # Customize the cover letter |
179 | CL="$ODIR/0000-cover-letter.patch" | 179 | CL="$ODIR/0000-cover-letter.patch" |
180 | PM="$ODIR/pull-msg" | 180 | PM="$ODIR/pull-msg" |
181 | GIT_VERSION=$(`git --version` | tr -d '[:alpha:][:space:].') | 181 | GIT_VERSION=$(`git --version` | tr -d '[:alpha:][:space:].' | sed 's/\(...\).*/\1/') |
182 | NEWER_GIT_VERSION=210 | 182 | NEWER_GIT_VERSION=210 |
183 | if [ $GIT_VERSION -lt $NEWER_GIT_VERSION ]; then | 183 | if [ $GIT_VERSION -lt $NEWER_GIT_VERSION ]; then |
184 | git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM" | 184 | git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM" |