diff --git a/build/fbcode_builder/getdeps/fetcher.py b/build/fbcode_builder/getdeps/fetcher.py index f02dd447bf..c4775cf489 100644 --- a/build/fbcode_builder/getdeps/fetcher.py +++ b/build/fbcode_builder/getdeps/fetcher.py @@ -588,7 +588,7 @@ def get_src_dir(self): class ShipitTransformerFetcher(Fetcher): - SHIPIT = "/var/www/scripts/opensource/shipit/run_shipit.php" + SHIPIT = "/var/www/scripts/opensource/codesync" def __init__(self, build_options, project_name) -> None: self.build_options = build_options @@ -614,12 +614,13 @@ def run_shipit(self) -> None: try: if os.path.exists(tmp_path): shutil.rmtree(tmp_path) + os.makedirs(os.path.dirname(tmp_path), exist_ok=True) # Run shipit run_cmd( [ - "php", ShipitTransformerFetcher.SHIPIT, + "shipit", "--project=" + self.project_name, "--create-new-repo", "--source-repo-dir=" + self.build_options.fbsource_dir, @@ -628,7 +629,6 @@ def run_shipit(self) -> None: "--skip-source-pull", "--skip-source-clean", "--skip-push", - "--skip-reset", "--destination-use-anonymous-https", "--create-new-repo-output-path=" + tmp_path, ]