From 6de21cc9d1c1d7675b384747aff38c0faaef66e3 Mon Sep 17 00:00:00 2001 From: rkansal47 Date: Tue, 5 Mar 2024 11:44:17 -0600 Subject: [PATCH] bf --- src/HHbbVV/run_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/HHbbVV/run_utils.py b/src/HHbbVV/run_utils.py index ebde4160..5410455b 100644 --- a/src/HHbbVV/run_utils.py +++ b/src/HHbbVV/run_utils.py @@ -4,6 +4,7 @@ import json import os import subprocess +import sys from pathlib import Path from string import Template @@ -67,9 +68,10 @@ def check_branch(git_branch: str, allow_diff_local_repo: bool = False): print(f"Local commit hash: {local_hash}") print(f"Remote commit hash: {remote_hash}") if allow_diff_local_repo: - print("Proceeding anyway...") + print_red("Proceeding anyway...") else: print_red("Exiting! Use the --allow-diff-local-repo option to override this.") + sys.exit(1) # for Dask executor