diff options
Diffstat (limited to 'Tools/Release/updateAMReX.py')
-rwxr-xr-x | Tools/Release/updateAMReX.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/Release/updateAMReX.py b/Tools/Release/updateAMReX.py index e3557c347..807b655e9 100755 --- a/Tools/Release/updateAMReX.py +++ b/Tools/Release/updateAMReX.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/AMReX-Codes/amrex.git + # cd amrex && git checkout COMMIT_TAG_OR_BRANCH && cd - run_test_content = re.sub( - r'(.*git\s+clone\s+\-\-branch\s+)(.+)(\s+https://github\.com/AMReX\-Codes/amrex\.git)', + r'(.*cd\s+amrex.+git checkout\s+)(.+)(\s+&&\s.*)', r'\g<1>{}\g<3>'.format(amrex_new_branch), run_test_content, flags = re.MULTILINE) |