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
+7-7
Original file line number
Diff line number
Diff line change
@@ -120,8 +120,8 @@ 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
-
# TODO(bdlester): Move to a logger that writes to stderror?
124
-
print(
123
+
logger=logging.getLogger("git_theta")
124
+
logger.error(
125
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"
126
126
)
127
127
sys.exit(1)
@@ -144,8 +144,8 @@ def track(args):
144
144
"""
145
145
repo=git_utils.get_git_repo()
146
146
ifnotgit_utils.is_git_theta_installed():
147
-
# TODO(bdlester): Move to a logger that writes to stderror?
148
-
print(
147
+
logger=logging.getLogger("git_theta")
148
+
logger.error(
149
149
"You are trying to track a file with git-theta, but git-theta is not installed, please run `git theta install`."
150
150
)
151
151
sys.exit(1)
@@ -163,9 +163,9 @@ def track(args):
163
163
defadd(args, unparsed_args):
164
164
repo=git_utils.get_git_repo()
165
165
ifnotgit_utils.is_git_theta_installed():
166
-
# TODO(bdlester): Move to a logger that writes to stderror?
167
-
print(
168
-
"You are trying to track a file with git-theta, but git-theta is not installed, please run `git theta install`."
166
+
logger=logging.getLogger("git_theta")
167
+
logger.error(
168
+
"You are trying to add a file using git-theta, but git-theta is not installed, please run `git theta install`."
0 commit comments