[OE-core] [RFC PATCH v2 12/15] create-pull-request: add GitHub remote support
Darren Hart
dvhart at linux.intel.com
Mon May 16 22:26:12 UTC 2011
From: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>
Signed-off-by: Darren Hart <dvhart at linux.intel.com>
---
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 9dbd55a..a9cf6f9 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 at github.com:*)
+ REMOTE_REPO=$(echo $REMOTE_URL | sed 's#.*:\(.*\)\(\.git\)$#\1#')
+ REMOTE_URL=${REMOTE_URL/"git at 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
--
1.7.1
More information about the Openembedded-core
mailing list