summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py8
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
23import os 23import os
24import bb 24import bb
25from bb import data 25from bb import data
26from bb.fetch import Fetch 26from bb.fetch2 import Fetch
27from bb.fetch import runfetchcmd 27from bb.fetch2 import runfetchcmd
28from bb.fetch import logger 28from bb.fetch2 import logger
29 29
30class Git(Fetch): 30class 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):