summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-05-13 22:33:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-05-19 23:40:39 +0100
commitb131ca1834de2ea535de44e423463008e59f18af (patch)
tree3b4ae9f6a0edb01bd7d7a12b3e6875469ae4eb06
parent5f9f2188b53ccea5988d90a1877886142e7a5216 (diff)
downloadpoky-b131ca1834de2ea535de44e423463008e59f18af.tar.gz
create-pull-request: add GitHub remote support
(From OE-Core rev: e504b149fe2f057e38c19642b3d71bf43be2d62a) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-xscripts/create-pull-request7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/create-pull-request b/scripts/create-pull-request
index 9dbd55a9c0..a9cf6f94f1 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
82 REMOTE_REPO=$(echo $REMOTE_URL | sed "s#.*/\(.*\)#\1#") 82 REMOTE_REPO=$(echo $REMOTE_URL | sed "s#.*/\(.*\)#\1#")
83 REMOTE_URL=${REMOTE_URL/"ssh://git@"/"git://"} 83 REMOTE_URL=${REMOTE_URL/"ssh://git@"/"git://"}
84 ;; 84 ;;
85 git@github.com:*)
86 REMOTE_REPO=$(echo $REMOTE_URL | sed 's#.*:\(.*\)\(\.git\)$#\1#')
87 REMOTE_URL=${REMOTE_URL/"git@github.com:"/"git://github.com/"}
88 ;;
85 esac 89 esac
86 # The .git suffix is optional in the URL, drop in for the REPO 90 # The .git suffix is optional in the URL, drop in for the REPO
87 REMOTE_REPO=${REMOTE_REPO%.git} 91 REMOTE_REPO=${REMOTE_REPO%.git}
@@ -107,6 +111,9 @@ case "$REMOTE_URL" in
107 *git.pokylinux.org*) 111 *git.pokylinux.org*)
108 WEB_URL="http://git.pokylinux.org/cgit.cgi/$REMOTE_REPO/log/?h=$BRANCH" 112 WEB_URL="http://git.pokylinux.org/cgit.cgi/$REMOTE_REPO/log/?h=$BRANCH"
109 ;; 113 ;;
114 *github.com*)
115 WEB_URL="https://github.com/$REMOTE_REPO/tree/$BRANCH"
116 ;;
110esac 117esac
111 118
112# Perform a sanity test on the web URL. Issue a warning if it is not 119# Perform a sanity test on the web URL. Issue a warning if it is not