[bitbake-devel] [PATCH 2/3] gitsm.py: Add support for alternative URL formats from submodule files

Mark Hatle mark.hatle at windriver.com
Wed Jan 9 16:33:38 UTC 2019


On 1/8/19 7:29 PM, Olof Johansson wrote:
> On 19-01-09 02:18 +0100, Olof Johansson wrote:
>> The path in an ssh:// uri is absolute, so the relative case must
>> be handled differently. But it's easy, git supports ~ expansion,
>> like:
>>
>>   alice at example.com:foo.git -> ssh://alice@example.com/~/foo.git
> 
> Tested some more. This works with git over openssh (possibly only
> against unix systems), but not with github it seems, so this
> wasn't as general of a solution I hoped. Sorry. I think the issue
> is real, but my proposed solution wasn't :(.
> 
> And, of course, the github ssh remote specifiers all look like
> git at github.com:alice/foo.
> 

Unfortunately, this is what I observed as well.  In the specific test cases I
had replacing it 'as-is' was a better solution.  (test case was specifically
github, and gitolite based)

The only alternative I can see in this case, is to try one fetch (try/catch) and
if it fails to try the alternative.  If they both fail, then it becomes a fetch
failure.

--Mark


More information about the bitbake-devel mailing list