summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorJuraj Hercek <juraj.hercek@jhksoftware.com>2011-12-22 15:21:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-04 16:04:07 +0000
commit51d64452f65e247321691243be304e92c19d3339 (patch)
tree910e3dddd0efc123b861f5d12dd4f117e690fa02 /bitbake/lib/bb/fetch2/git.py
parentf540034864cb2afdd47486b271900e1021ae0b27 (diff)
downloadpoky-51d64452f65e247321691243be304e92c19d3339.tar.gz
fetch2/git: change colon to dot in ud.host
Local cloning of git repositories from DL_DIR into WORKDIR fails when using ssh URL with port specification e.g. "ssh://user@host:port/path/to/repo.git". Git fetcher clones such remote repository into "${DL_DIR}/git2/host:port.path.to.repo.git". However, when clonging from ${DL_DIR}/git2/host:port.path.to.repo.git into ${WORKDIR}, git fetcher fails with "ssh: Could not resolve hostname ${DLDIR}/git2/host: Name or service not known". A solution is to replace ":" by "." in host component, similarly as it is done when replacing "/" with "." in path component, so that local clone directory in DL_DIR looks like this: "host.port.path.to.repo.git". (Bitbake rev: 1f2867b79f1cd2bfbdc849ba5677a39db6fa3396) Signed-off-by: Juraj Hercek <juraj.hercek@jhksoftware.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index f203c5abb1..d8337149b1 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -115,7 +115,7 @@ class Git(FetchMethod):
115 ud.branches[name] = ud.revisions[name] 115 ud.branches[name] = ud.revisions[name]
116 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name) 116 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
117 117
118 gitsrcname = '%s%s' % (ud.host, ud.path.replace('/', '.')) 118 gitsrcname = '%s%s' % (ud.host.replace(':','.'), ud.path.replace('/', '.'))
119 # for rebaseable git repo, it is necessary to keep mirror tar ball 119 # for rebaseable git repo, it is necessary to keep mirror tar ball
120 # per revision, so that even the revision disappears from the 120 # per revision, so that even the revision disappears from the
121 # upstream repo in the future, the mirror will remain intact and still 121 # upstream repo in the future, the mirror will remain intact and still