diff options
Diffstat (limited to 'scripts/create-pull-request')
| -rwxr-xr-x | scripts/create-pull-request | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 8eefcf63a5..885105fab3 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request | |||
| @@ -128,7 +128,7 @@ PROTO_RE="[a-z][a-z+]*://" | |||
| 128 | GIT_RE="\(^\($PROTO_RE\)\?\)\($USER_RE@\)\?\([^:/]*\)[:/]\(.*\)" | 128 | GIT_RE="\(^\($PROTO_RE\)\?\)\($USER_RE@\)\?\([^:/]*\)[:/]\(.*\)" |
| 129 | REMOTE_URL=${REMOTE_URL%.git} | 129 | REMOTE_URL=${REMOTE_URL%.git} |
| 130 | REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\5#") | 130 | REMOTE_REPO=$(echo $REMOTE_URL | sed "s#$GIT_RE#\5#") |
| 131 | REMOTE_URL=$(echo $REMOTE_URL | sed "s#$GIT_RE#git://\4/\5#") | 131 | REMOTE_URL=$(echo $REMOTE_URL | sed "s#$GIT_RE#https://\4/\5#") |
| 132 | 132 | ||
| 133 | if [ -z "$BRANCH" ]; then | 133 | if [ -z "$BRANCH" ]; then |
| 134 | BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2) | 134 | BRANCH=$(git branch | grep -e "^\* " | cut -d' ' -f2) |
| @@ -149,13 +149,10 @@ fi | |||
| 149 | WEB_URL="" | 149 | WEB_URL="" |
| 150 | case "$REMOTE_URL" in | 150 | case "$REMOTE_URL" in |
| 151 | *git.yoctoproject.org*) | 151 | *git.yoctoproject.org*) |
| 152 | WEB_URL="http://git.yoctoproject.org/cgit.cgi/$REMOTE_REPO/log/?h=$BRANCH" | 152 | WEB_URL="https://git.yoctoproject.org/$REMOTE_REPO/log/?h=$BRANCH" |
| 153 | ;; | ||
| 154 | *git.pokylinux.org*) | ||
| 155 | WEB_URL="http://git.pokylinux.org/cgit.cgi/$REMOTE_REPO/log/?h=$BRANCH" | ||
| 156 | ;; | 153 | ;; |
| 157 | *git.openembedded.org*) | 154 | *git.openembedded.org*) |
| 158 | WEB_URL="http://cgit.openembedded.org/$REMOTE_REPO/log/?h=$BRANCH" | 155 | WEB_URL="https://git.openembedded.org/$REMOTE_REPO/log/?h=$BRANCH" |
| 159 | ;; | 156 | ;; |
| 160 | *github.com*) | 157 | *github.com*) |
| 161 | WEB_URL="https://github.com/$REMOTE_REPO/tree/$BRANCH" | 158 | WEB_URL="https://github.com/$REMOTE_REPO/tree/$BRANCH" |
