repopick: Skip commit_exists() check when using -p
Change-Id: I7b99e8c940bddad80e6362302f1ae24248e42faf
diff --git a/build/tools/repopick.py b/build/tools/repopick.py
index 4bdfb9a..426e68c 100755
--- a/build/tools/repopick.py
+++ b/build/tools/repopick.py
@@ -624,7 +624,7 @@
project_path = item["project_path"]
# commit object already exists, no need to fetch
- if commit_exists(project_path, item["revision"]):
+ if not args.pull and commit_exists(project_path, item["revision"]):
return
if "anonymous http" in item["fetch"]: