diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py index de415ec309..e8ad3b43ca 100644 --- a/bitbake/lib/bb/fetch2/git.py +++ b/bitbake/lib/bb/fetch2/git.py | |||
| @@ -23,9 +23,9 @@ BitBake 'Fetch' git implementation | |||
| 23 | import os | 23 | import os |
| 24 | import bb | 24 | import bb |
| 25 | from bb import data | 25 | from bb import data |
| 26 | from bb.fetch import Fetch | 26 | from bb.fetch2 import Fetch |
| 27 | from bb.fetch import runfetchcmd | 27 | from bb.fetch2 import runfetchcmd |
| 28 | from bb.fetch import logger | 28 | from bb.fetch2 import logger |
| 29 | 29 | ||
| 30 | class Git(Fetch): | 30 | class Git(Fetch): |
| 31 | """Class to fetch a module or modules from git repositories""" | 31 | """Class to fetch a module or modules from git repositories""" |
| @@ -225,7 +225,7 @@ class Git(Fetch): | |||
| 225 | cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch) | 225 | cmd = "%s ls-remote %s://%s%s%s %s" % (basecmd, ud.proto, username, ud.host, ud.path, ud.branch) |
| 226 | output = runfetchcmd(cmd, d, True) | 226 | output = runfetchcmd(cmd, d, True) |
| 227 | if not output: | 227 | if not output: |
| 228 | raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) | 228 | raise bb.fetch2.FetchError("Fetch command %s gave empty output\n" % (cmd)) |
| 229 | return output.split()[0] | 229 | return output.split()[0] |
| 230 | 230 | ||
| 231 | def _build_revision(self, url, ud, d): | 231 | def _build_revision(self, url, ud, d): |
