diff options
author | Mark Hatle <mark.hatle@windriver.com> | 2019-01-15 16:31:32 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-01-15 22:22:29 +0000 |
commit | dcac05e7dc6b0c5f8e63d36ad105b7eab41f0016 (patch) | |
tree | d9fd7b8275ee7a9eb6d05703b24975f38a9c3d3d /conf | |
parent | 49e1ff920143dcd4e7f73933d7ab8a84b8ffa1a3 (diff) | |
download | bitbake-contrib-dcac05e7dc6b0c5f8e63d36ad105b7eab41f0016.tar.gz |
gitsm.py: Add support for alternative URL formats from submodule files
The following appear to be the git supported formats:
proto://user:pass@host/path (URI format)
user@host:path (SSH format)
/path or ./path or ../path (local file format)
We adjust the parsing to find out if we have a URI format or not.
When we are NOT in URI format, we do our best to determine SSH or
file format by looking for a ':' in the overall string. If we find
a ':' we assume SSH format and adjust accordingly.
Note, in SSH format we simply replace the ':' with a '/' when constructing
the URL. However, if the original path was ":/...", we don't want '//' so
we deal with this corner case as well.
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'conf')
0 files changed, 0 insertions, 0 deletions