From ee1f065078aaae3b0aadbf91cdc52184273d3f6b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 17 Dec 2008 12:07:41 +0000 Subject: bitbake: Make sure the git remote head viewer preserves the username --- bitbake-dev/lib/bb/fetch/git.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitbake-dev') diff --git a/bitbake-dev/lib/bb/fetch/git.py b/bitbake-dev/lib/bb/fetch/git.py index 26f2b47f2a..010a4f57a2 100644 --- a/bitbake-dev/lib/bb/fetch/git.py +++ b/bitbake-dev/lib/bb/fetch/git.py @@ -130,7 +130,12 @@ class Git(Fetch): """ Compute the HEAD revision for the url """ - output = runfetchcmd("git ls-remote %s://%s%s %s" % (ud.proto, ud.host, ud.path, ud.branch), d, True) + if ud.user: + username = ud.user + '@' + else: + username = "" + + output = runfetchcmd("git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch), d, True) return output.split()[0] def _build_revision(self, url, ud, d): -- cgit v1.2.3-54-g00ecf