summaryrefslogtreecommitdiff
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:32:29 +0100
commitfb556532d4320518b96808d773d9e42719293be4 (patch)
tree6ea377764fadbdeb0b04a258fdeb5408ba152f35 /scripts/create-pull-request
parent613d0275a59be9154c2a2cdc101bd3e2c79a6d44 (diff)
downloadopenembedded-core-fb556532d4320518b96808d773d9e42719293be4.tar.gz
openembedded-core-fb556532d4320518b96808d773d9e42719293be4.tar.bz2
openembedded-core-fb556532d4320518b96808d773d9e42719293be4.tar.xz
openembedded-core-fb556532d4320518b96808d773d9e42719293be4.zip
create-pull-request: allow '+' in git PROTO_RE, ie for 'git+ssh://'
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
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 19b640fdb..d52098ee6 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
case "$REMOTE_URL" in
*@*)
USER_RE="[A-Za-z0-9_.@][A-Za-z0-9_.@-]*\$\?"
- PROTO_RE="[a-z][a-z]*://"
+ PROTO_RE="[a-z][a-z+]*://"
GIT_RE="\(^\($PROTO_RE\)\?$USER_RE@\)\([^:/]*\)[:/]\(.*\)"
REMOTE_URL=${REMOTE_URL%.git}
REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\4#")