diff --git a/cadetrdm/repositories.py b/cadetrdm/repositories.py index 6fa2d927ca48334b00583debdbc4bf99add8f8b6..67999a9f992c5aefe68f4622fd2dd7bfc10af917 100644 --- a/cadetrdm/repositories.py +++ b/cadetrdm/repositories.py @@ -11,7 +11,6 @@ import glob from stat import S_IREAD, S_IWRITE from urllib.request import urlretrieve -from ipylab import JupyterFrontEnd from tabulate import tabulate from cadetrdm.io_utils import recursive_chmod, write_lines_to_file, wait_for_user, init_lfs @@ -425,17 +424,7 @@ class BaseRepo: :param add_all: Option to add all changed and new files to git automatically. """ - try: - app = JupyterFrontEnd() - print("Saving", end="") - # note: docmanager:save doesn't lock the python thread until saving is completed. - # Sometimes, new changes aren't completely saved before checks are performed. - # Waiting for 0.1 seconds seems to prevent that. - app.commands.execute('docmanager:save') - time.sleep(0.1) - print("") - except: - pass + if not self.exist_uncomitted_changes: print(f"No changes to commit in repo {self.working_dir}") return diff --git a/cadetrdm/version.py b/cadetrdm/version.py index fc28f3a5851d4c3fea1c9b7ed2bc421a8afbf35e..662fbed22da1fdb5273175481da719f3c9e4c78c 100644 --- a/cadetrdm/version.py +++ b/cadetrdm/version.py @@ -1 +1 @@ -version = "0.0.17" +version = "0.0.18"