You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: git_theta/scripts/git_theta.py
+15-2
Original file line number
Diff line number
Diff line change
@@ -120,8 +120,9 @@ def install(args):
120
120
"""
121
121
# check if git-lfs is installed and abort if not
122
122
ifnotgit_utils.is_git_lfs_installed():
123
-
print(
124
-
f"git-theta depends on git-lfs and it does not appear to be installed. See installation directions at https://github.com/r-three/git-theta/blob/main/README.md#git-lfs-installation"
123
+
logger=logging.getLogger("git_theta")
124
+
logger.error(
125
+
"git-theta depends on git-lfs and it does not appear to be installed. See installation directions at https://github.com/r-three/git-theta/blob/main/README.md#git-lfs-installation"
125
126
)
126
127
sys.exit(1)
127
128
@@ -142,6 +143,12 @@ def track(args):
142
143
Track a particular model checkpoint file with git-theta
143
144
"""
144
145
repo=git_utils.get_git_repo()
146
+
ifnotgit_utils.is_git_theta_installed():
147
+
logger=logging.getLogger("git_theta")
148
+
logger.error(
149
+
"You are trying to track a file with git-theta, but git-theta is not installed, please run `git theta install`."
0 commit comments