diff options
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index 374d846798..40658ff94c 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -137,7 +137,10 @@ class Git(FetchMethod): | |||
| 137 | ud.unresolvedrev[name] = ud.revisions[name] | 137 | ud.unresolvedrev[name] = ud.revisions[name] |
| 138 | ud.revisions[name] = self.latest_revision(ud, d, name) | 138 | ud.revisions[name] = self.latest_revision(ud, d, name) |
| 139 | 139 | ||
| 140 | gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.').replace('*', '.')) | 140 | gitsrcname = '%s%s' % (ud.host.replace(':', '.'), ud.path.replace('/', '.').replace('*', '.')) |
| 141 | if gitsrcname.startswith('.'): | ||
| 142 | gitsrcname = gitsrcname[1:] | ||
| 143 | |||
| 141 | # for rebaseable git repo, it is necessary to keep mirror tar ball | 144 | # for rebaseable git repo, it is necessary to keep mirror tar ball |
| 142 | # per revision, so that even the revision disappears from the | 145 | # per revision, so that even the revision disappears from the |
| 143 | # upstream repo in the future, the mirror will remain intact and still | 146 | # upstream repo in the future, the mirror will remain intact and still |
