diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index fa41b078f1..9ba9cdccc7 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
@@ -594,7 +594,9 @@ class Git(FetchMethod): | |||
594 | """ | 594 | """ |
595 | Return a unique key for the url | 595 | Return a unique key for the url |
596 | """ | 596 | """ |
597 | return "git:" + ud.host + ud.path.replace('/', '.') + ud.unresolvedrev[name] | 597 | # Collapse adjacent slashes |
598 | slash_re = re.compile(r"/+") | ||
599 | return "git:" + ud.host + slash_re.sub(".", ud.path) + ud.unresolvedrev[name] | ||
598 | 600 | ||
599 | def _lsremote(self, ud, d, search): | 601 | def _lsremote(self, ud, d, search): |
600 | """ | 602 | """ |