aboutsummaryrefslogtreecommitdiff
path: root/Tools/Release/updatePICSAR.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/Release/updatePICSAR.py')
-rwxr-xr-xTools/Release/updatePICSAR.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/Release/updatePICSAR.py b/Tools/Release/updatePICSAR.py
index a3c3f79fc..bb17d5132 100755
--- a/Tools/Release/updatePICSAR.py
+++ b/Tools/Release/updatePICSAR.py
@@ -100,9 +100,9 @@ run_test_path = str(REPO_DIR.joinpath("run_test.sh"))
with open(run_test_path, encoding='utf-8') as f:
run_test_content = f.read()
# branch/commit/tag (git fetcher) version
- # git clone --branch development https://github.com/PICSAR-Codes/PICSAR.git
+ # cd picsar && git checkout COMMIT_TAG_OR_BRANCH && cd -
run_test_content = re.sub(
- r'(.*git\s+clone\s+\-\-branch\s+)(.+)(\s+https://github\.com/ECP\-WarpX/picsar\.git)',
+ r'(.*cd\s+picsar.+git checkout\s+)(.+)(\s+&&\s.*)',
r'\g<1>{}\g<3>'.format(PICSAR_new_branch),
run_test_content, flags = re.MULTILINE)