From c02e38901b56af3a0ad03b023d04bada008bae5a Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 11 Dec 2009 12:48:14 +0000 Subject: git.py: Improve command failure error messages Signed-off-by: Richard Purdie --- bitbake/lib/bb/fetch/git.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bitbake') diff --git a/bitbake/lib/bb/fetch/git.py b/bitbake/lib/bb/fetch/git.py index 911c5e437f..6e4e67c40f 100644 --- a/bitbake/lib/bb/fetch/git.py +++ b/bitbake/lib/bb/fetch/git.py @@ -139,7 +139,10 @@ class Git(Fetch): else: username = "" - output = runfetchcmd("git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch), d, True) + cmd = "git ls-remote %s://%s%s%s %s" % (ud.proto, username, ud.host, ud.path, ud.branch) + output = runfetchcmd(cmd, d, True) + if not output: + raise bb.fetch.FetchError("Fetch command %s gave empty output\n" % (cmd)) return output.split()[0] def _build_revision(self, url, ud, d): -- cgit v1.2.3-54-g00ecf