]> code.ossystems Code Review - openembedded-core.git/commit
create-pull-request: generalize the repository URL parsing
authorDarren Hart <dvhart@linux.intel.com>
Mon, 23 May 2011 17:21:53 +0000 (10:21 -0700)
committerSaul Wold <sgw@linux.intel.com>
Tue, 24 May 2011 06:39:09 +0000 (23:39 -0700)
commit861c288e353e917374de938c4e5e927e116cd56c
treec87af2007698e05c037e82935c74994cb0f6d01d
parentdebee5134a2ca505e968a6ddfb5c2f6434e3007a
create-pull-request: generalize the repository URL parsing

The existing REMOTE_URL and REMOTE_REPO parsing made assumptions regarding
the git URL format used for the known repository types. In fact, both of
these ssh URL formats are valid for all the known repositories. Specifically:

  ssh://git@server/repository/path
  git@server:repository/path

Generalize the parsing to work with each of these for all push URLs matching
*@*. Tested with the following URLs:

  ssh://git@git.pokylinux.org/poky-contrib
  ssh://git@git.pokylinux.org/poky-contrib.git
  git@git.pokylinux.org:poky-contrib
  git@git.pokylinux.org:poky-contrib.git

Signed-off-by: Darren Hart <dvhart@linux.intel.com>
scripts/create-pull-request