diff options
Diffstat (limited to 'bitbake/lib/bb/fetch2/git.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/git.py | 8 |
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 | ||
