diff --git a/lib/bb/fetch2/git.py b/lib/bb/fetch2/git.py index 5ef8cd69e2..82e2ff0de4 100644 --- a/lib/bb/fetch2/git.py +++ b/lib/bb/fetch2/git.py @@ -523,7 +523,10 @@ def _get_repo_url(self, ud): Return the repository URL """ if ud.user: - username = ud.user + '@' + if us.pswd: + username = ud.user + ':' + us.pswd + '@' + else: + username = ud.user + '@' else: username = "" return "%s://%s%s%s" % (ud.proto, username, ud.host, ud.path)