There was an error while loading. Please reload this page.
1 parent cf92acc commit 9749a0eCopy full SHA for 9749a0e
gitfs/utils/args.py
@@ -185,7 +185,7 @@ def get_repo_path(self, args):
185
return tempfile.mkdtemp(dir="/var/lib/gitfs")
186
187
def get_ssh_key(self, args):
188
- return os.environ["HOME"] + "/.ssh/id_rsa"
+ return os.getenv("HOME", "/root/") + "/.ssh/id_rsa"
189
190
def get_sentry_dsn(self, args):
191
return os.environ["SENTRY_DSN"] if "SENTRY_DSN" in os.environ else ""
0 commit comments