diff options
-rw-r--r-- | bitbake-dev/lib/bb/fetch/git.py | 7 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/git.py | 7 |
2 files changed, 12 insertions, 2 deletions
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): | |||
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): |
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): |