diff options
-rw-r--r-- | lib/bb/fetch/git.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch/git.py b/lib/bb/fetch/git.py index 97cd0a247..5cdf656a3 100644 --- a/lib/bb/fetch/git.py +++ b/lib/bb/fetch/git.py @@ -62,7 +62,7 @@ class Git(Fetch): def go(self, loc, ud, d): """Fetch url""" - if os.access(os.path.join(data.getVar("DL_DIR", d, True), ud.localfile), os.R_OK): + if Fetch.try_mirror(d, ud.localfile): bb.msg.debug(1, bb.msg.domain.Fetcher, "%s already exists (or was stashed). Skipping git checkout." % ud.localpath) return |