From 7a3ac2cead430ba51a4f0d0daa6193125dc0ee4f Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Thu, 11 Sep 2025 01:24:10 -0700 Subject: [PATCH] feat: remove backward compatibility codes --- bin/joj3-forge-convert | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/joj3-forge-convert b/bin/joj3-forge-convert index 2053e89..fe19bf0 100755 --- a/bin/joj3-forge-convert +++ b/bin/joj3-forge-convert @@ -29,13 +29,14 @@ main() { if ! [ -d "$config_repo_path" ]; then git clone "$git_server/$course/$course-config.git" "$config_repo_path" + git -C "$config_repo_path" config user.name "$git_user" + git -C "$config_repo_path" config user.email "$git_email" fi - # TODO: move this into if statement - git -C "$config_repo_path" config user.name "$git_user" - git -C "$config_repo_path" config user.email "$git_email" if ! [ -d "$grading_repo_path" ]; then git clone "$git_server/$course/$course-joj.git" "$grading_repo_path" + git -C "$grading_repo_path" config user.name "$git_user" + git -C "$grading_repo_path" config user.email "$git_email" git -C "$grading_repo_path" switch --orphan grading cat >"$grading_repo_path/Readme.md" <