summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2008-12-17 12:07:41 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2008-12-17 12:07:41 +0000
commitee1f065078aaae3b0aadbf91cdc52184273d3f6b (patch)
tree8388bdd7605144f83ef010684248f09583170f70 /bitbake
parentf9dbbf4f83b835a8b696405535d5f1de7d6c53d9 (diff)
downloadpoky-ee1f065078aaae3b0aadbf91cdc52184273d3f6b.tar.gz
bitbake: Make sure the git remote head viewer preserves the username
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/git.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py
index 26f2b47f2a..010a4f57a2 100644
--- a/bitbake/lib/bb/fetch/git.py
+++ b/bitbake/lib/bb/fetch/git.py
@@ -130,7 +130,12 @@ class Git(Fetch):
130 """ 130 """
131 Compute the HEAD revision for the url 131 Compute the HEAD revision for the url
132 """ 132 """
133 output = runfetchcmd("git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d, True) 133 if ud.user:
134 username = ud.user + '@'
135 else:
136 username = ""
137
138 output = runfetchcmd("git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch), d, True)
134 return output.split()[0] 139 return output.split()[0]
135 140
136 def _build_revision(self, url, ud, d): 141 def _build_revision(self, url, ud, d):