diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-05-13 22:33:53 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-19 23:38:21 +0100 |
commit | e504b149fe2f057e38c19642b3d71bf43be2d62a (patch) | |
tree | d045d2d2555dfecbfbd6dc047dfda3e8c88ab47a | |
parent | 027667824ca78d4f118d1917a515a675d966985c (diff) | |
download | openembedded-core-e504b149fe2f057e38c19642b3d71bf43be2d62a.tar.gz openembedded-core-e504b149fe2f057e38c19642b3d71bf43be2d62a.tar.bz2 openembedded-core-e504b149fe2f057e38c19642b3d71bf43be2d62a.tar.xz openembedded-core-e504b149fe2f057e38c19642b3d71bf43be2d62a.zip |
create-pull-request: add GitHub remote support
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
-rwxr-xr-x | scripts/create-pull-request | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request index 9dbd55a9c..a9cf6f94f 100755 --- a/scripts/create-pull-request +++ b/scripts/create-pull-request @@ -82,6 +82,10 @@ while getopts "b:chi:m:o:p:r:s:u:" OPT; do REMOTE_REPO=$(echo $REMOTE_URL | sed "s#.*/\(.*\)#\1#") REMOTE_URL=${REMOTE_URL/"ssh://git@"/"git://"} ;; + git@github.com:*) + REMOTE_REPO=$(echo $REMOTE_URL | sed 's#.*:\(.*\)\(\.git\)$#\1#') + REMOTE_URL=${REMOTE_URL/"git@github.com:"/"git://github.com/"} + ;; esac # The .git suffix is optional in the URL, drop in for the REPO REMOTE_REPO=${REMOTE_REPO%.git} @@ -107,6 +111,9 @@ case "$REMOTE_URL" in *git.pokylinux.org*) WEB_URL="http://git.pokylinux.org/cgit.cgi/$REMOTE_REPO/log/?h=$BRANCH" ;; + *github.com*) + WEB_URL="https://github.com/$REMOTE_REPO/tree/$BRANCH" + ;; esac # Perform a sanity test on the web URL. Issue a warning if it is not |