* [PATCH 0/1] create-pull-request: fix git GIT_VERSION
@ 2015-03-04 9:29 Robert Yang
2015-03-04 9:29 ` [PATCH 1/1] " Robert Yang
0 siblings, 1 reply; 2+ messages in thread
From: Robert Yang @ 2015-03-04 9:29 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 3c78468f12296abd02abce6eeac0f69bc7509958:
build-appliance-image: Update to master head revision (2015-03-03 13:12:50 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib rbt/fix_git
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=rbt/fix_git
Robert Yang (1):
create-pull-request: fix git GIT_VERSION
scripts/create-pull-request | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] create-pull-request: fix git GIT_VERSION
2015-03-04 9:29 [PATCH 0/1] create-pull-request: fix git GIT_VERSION Robert Yang
@ 2015-03-04 9:29 ` Robert Yang
0 siblings, 0 replies; 2+ messages in thread
From: Robert Yang @ 2015-03-04 9:29 UTC (permalink / raw)
To: openembedded-core
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.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
---
scripts/create-pull-request | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index d83362f..97ed874 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 --
# Customize the cover letter
CL="$ODIR/0000-cover-letter.patch"
PM="$ODIR/pull-msg"
-GIT_VERSION=$(`git --version` | tr -d '[:alpha:][:space:].')
+GIT_VERSION=$(`git --version` | tr -d '[:alpha:][:space:].' | sed 's/\(...\).*/\1/')
NEWER_GIT_VERSION=210
if [ $GIT_VERSION -lt $NEWER_GIT_VERSION ]; then
git request-pull $RELATIVE_TO $REMOTE_URL $COMMIT_ID >> "$PM"
--
1.7.9.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-03-04 9:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 9:29 [PATCH 0/1] create-pull-request: fix git GIT_VERSION Robert Yang
2015-03-04 9:29 ` [PATCH 1/1] " Robert Yang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.