diff --git a/aksetup_helper.py b/aksetup_helper.py index 487ecaa98deda5eacd65f559e15330d33e8c33f0..97c58f3b50b0d3816ff18f2c9b85526881fda85c 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -737,7 +737,7 @@ def check_git_submodules(): print("not invoke git to check whether my submodules are up to date.") print("") print("The error was:") - print(e) + print(git_error) print("Hit Ctrl-C now if you'd like to think about the situation.") print("-------------------------------------------------------------------------") count_down_delay(delay=5) @@ -797,7 +797,9 @@ def check_git_submodules(): print("Hit Ctrl-C now if you'd like to think about the situation.") print("-------------------------------------------------------------------------") - count_down_delay(delay=10) + from os.path import exists + if not exists(".dirty-git-ok"): + count_down_delay(delay=10)