repopick: Skip commit_exists() check when using -p

Change-Id: I7b99e8c940bddad80e6362302f1ae24248e42faf
This commit is contained in:
LuK1337
2024-02-11 19:10:52 +01:00
committed by Michael Bestas
parent afb819d70c
commit 65498a79bd

View File

@@ -624,7 +624,7 @@ def do_git_fetch_pull(args, item):
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"]: