mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
ab65c7247f
commit
e8ded5e863
|
@ -102,7 +102,7 @@ while getopts "b:chi:m:o:p:r:s:u:" OPT; do
|
||||||
case "$REMOTE_URL" in
|
case "$REMOTE_URL" in
|
||||||
*@*)
|
*@*)
|
||||||
USER_RE="[A-Za-z0-9_.@][A-Za-z0-9_.@-]*\$\?"
|
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@\)\([^:/]*\)[:/]\(.*\)"
|
GIT_RE="\(^\($PROTO_RE\)\?$USER_RE@\)\([^:/]*\)[:/]\(.*\)"
|
||||||
REMOTE_URL=${REMOTE_URL%.git}
|
REMOTE_URL=${REMOTE_URL%.git}
|
||||||
REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\4#")
|
REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\4#")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user