summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 22:08:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 22:08:21 +0000
commit029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34 (patch)
treec4738712f08cb91326bea57aff156c31c289e21e /bitbake/lib/bb/fetch2/git.py
parent4a226460d5e158e8adbf74a68717cb9a923e8009 (diff)
downloadpoky-029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34.tar.gz
bitbake/fetch2: Add explict network access exception and handling to give users usable error messages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
-rw-r--r--bitbake/lib/bb/fetch2/git.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 6d82bdc88b..f2c27e42a7 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -132,7 +132,7 @@ class Git(FetchMethod):
132 if not self._contains_ref(ud.revisions[name], d): 132 if not self._contains_ref(ud.revisions[name], d):
133 needupdate = True 133 needupdate = True
134 if needupdate: 134 if needupdate:
135 bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path)) 135 bb.fetch2.check_network_access(d, "git fetch %s%s" % (ud.host, ud.path), ud.url)
136 try: 136 try:
137 runfetchcmd("%s remote prune origin" % ud.basecmd, d) 137 runfetchcmd("%s remote prune origin" % ud.basecmd, d)
138 runfetchcmd("%s remote rm origin" % ud.basecmd, d) 138 runfetchcmd("%s remote rm origin" % ud.basecmd, d)