Commit 4ce59c1d authored by Adam Simpkins's avatar Adam Simpkins Committed by Facebook Github Bot

getdeps: fix a crash if the project_hashes directory does not exist

Summary:
This makes getdeps.py no longer crash if used in the folly repository.
Folly does not depend on any other Facebook projects, so it does not
include a `build/deps` directory.

Reviewed By: wez

Differential Revision: D16778009

fbshipit-source-id: 41be53d862f41b62154b081eb90ddba8742658fe
parent 27bf440a
......@@ -148,7 +148,7 @@ class GitFetcher(Fetcher):
os.makedirs(repos_dir)
self.repo_dir = os.path.join(repos_dir, directory)
if not rev:
if not rev and build_options.project_hashes:
hash_file = os.path.join(
build_options.project_hashes,
re.sub("\\.git$", "-rev.txt", url.path[1:]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment