summaryrefslogtreecommitdiffstats
path: root/scripts/create-pull-request
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2011-05-31 17:40:26 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-01 18:34:36 +0100
commite8ded5e863b8094e1ab6d6a19fd1ac39add50a4d (patch)
treeed22b148482cebf30892ab6978dce062d9725800 /scripts/create-pull-request
parentab65c7247ff659edabe9f866fd9ca39941265f88 (diff)
downloadpoky-e8ded5e863b8094e1ab6d6a19fd1ac39add50a4d.tar.gz
create-pull-request: allow '+' in git PROTO_RE, ie for 'git+ssh://'
(From OE-Core rev: fb556532d4320518b96808d773d9e42719293be4) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/create-pull-request')
-rwxr-xr-xscripts/create-pull-request2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 19b640fdb8..d52098ee60 100755
--- a/scripts/create-pull-request
+++ b/scripts/create-pull-request
@@ -102,7 +102,7 @@ while getopts "b:chi:m:o:p:r:s:u:" OPT; do
102 case "$REMOTE_URL" in 102 case "$REMOTE_URL" in
103 *@*) 103 *@*)
104 USER_RE="[A-Za-z0-9_.@][A-Za-z0-9_.@-]*\$\?" 104 USER_RE="[A-Za-z0-9_.@][A-Za-z0-9_.@-]*\$\?"
105 PROTO_RE="[a-z][a-z]*://" 105 PROTO_RE="[a-z][a-z+]*://"
106 GIT_RE="\(^\($PROTO_RE\)\?$USER_RE@\)\([^:/]*\)[:/]\(.*\)" 106 GIT_RE="\(^\($PROTO_RE\)\?$USER_RE@\)\([^:/]*\)[:/]\(.*\)"
107 REMOTE_URL=${REMOTE_URL%.git} 107 REMOTE_URL=${REMOTE_URL%.git}
108 REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\4#") 108 REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\4#")