summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/git.py
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2011-08-24 13:04:23 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-08-24 19:49:32 -0700
commitcd80b4fc6dc06ff36ed8e3423b9cf990856d7145 (patch)
treec94034454a162565617639f6623a556bb2c7d86e /bitbake/lib/bb/fetch2/git.py
parent64c1f93828402ffb5c0fada527724598bc300973 (diff)
downloadpoky-cd80b4fc6dc06ff36ed8e3423b9cf990856d7145.tar.gz
bb/fetch2/git: add checkstatus command
Use git ls-remote to implement checkstatus command for the git fetcher. (Bitbake rev: 0ed281feb6d244d3700da484f4e83394ae394f93) Signed-off-by: Joshua Lock <josh@linux.intel.com> 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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 25c2c510f6..97bf0865ac 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -298,3 +298,11 @@ class Git(FetchMethod):
298 buildindex = "%s" % output.split()[0] 298 buildindex = "%s" % output.split()[0]
299 logger.debug(1, "GIT repository for %s in %s is returning %s revisions in rev-list before %s", url, ud.clonedir, buildindex, rev) 299 logger.debug(1, "GIT repository for %s in %s is returning %s revisions in rev-list before %s", url, ud.clonedir, buildindex, rev)
300 return buildindex 300 return buildindex
301
302 def checkstatus(self, uri, ud, d):
303 fetchcmd = "%s ls-remote %s" % (ud.basecmd, uri)
304 try:
305 runfetchcmd(fetchcmd, d, quiet=True)
306 return True
307 except FetchError:
308 return False