From 5eb59d62a86527651358966afd5220b26b9c9f84 Mon Sep 17 00:00:00 2001 From: frostyfan109 Date: Tue, 23 Jul 2024 22:16:03 -0400 Subject: [PATCH] Fix cwd=repo_root in git config identity section --- eduhelx_jupyterlab_student/handlers.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eduhelx_jupyterlab_student/handlers.py b/eduhelx_jupyterlab_student/handlers.py index e7e9125..7b387a5 100644 --- a/eduhelx_jupyterlab_student/handlers.py +++ b/eduhelx_jupyterlab_student/handlers.py @@ -420,12 +420,12 @@ async def set_git_authentication(context: AppContext, course, student) -> None: execute(["git", "config", "--local", "--unset-all", "credential.helper"], cwd=repo_root) execute(["git", "config", "--local", "--unset-all", "core.sshCommand"], cwd=repo_root) - execute(["git", "config", "--local", "user.name", context.config.USER_NAME]) - execute(["git", "config", "--local", "user.email", student["email"]]) - execute(["git", "config", "--local", "author.name", context.config.USER_NAME]) - execute(["git", "config", "--local", "author.email", student["email"]]) - execute(["git", "config", "--local", "committer.name", context.config.USER_NAME]) - execute(["git", "config", "--local", "committer.email", student["email"]]) + execute(["git", "config", "--local", "user.name", context.config.USER_NAME], cwd=repo_root) + execute(["git", "config", "--local", "user.email", student["email"]], cwd=repo_root) + execute(["git", "config", "--local", "author.name", context.config.USER_NAME], cwd=repo_root) + execute(["git", "config", "--local", "author.email", student["email"]], cwd=repo_root) + execute(["git", "config", "--local", "committer.name", context.config.USER_NAME], cwd=repo_root) + execute(["git", "config", "--local", "committer.email", student["email"]], cwd=repo_root) if use_password_auth: execute(["git", "config", "--local", "credential.helper", ""], cwd=repo_root)