feat: remove backward compatibility codes
All checks were successful
push / build (push) Successful in 2m0s
All checks were successful
push / build (push) Successful in 2m0s
This commit is contained in:
parent
50319d6778
commit
7a3ac2cead
|
@ -29,13 +29,14 @@ main() {
|
||||||
|
|
||||||
if ! [ -d "$config_repo_path" ]; then
|
if ! [ -d "$config_repo_path" ]; then
|
||||||
git clone "$git_server/$course/$course-config.git" "$config_repo_path"
|
git clone "$git_server/$course/$course-config.git" "$config_repo_path"
|
||||||
fi
|
|
||||||
# TODO: move this into if statement
|
|
||||||
git -C "$config_repo_path" config user.name "$git_user"
|
git -C "$config_repo_path" config user.name "$git_user"
|
||||||
git -C "$config_repo_path" config user.email "$git_email"
|
git -C "$config_repo_path" config user.email "$git_email"
|
||||||
|
fi
|
||||||
|
|
||||||
if ! [ -d "$grading_repo_path" ]; then
|
if ! [ -d "$grading_repo_path" ]; then
|
||||||
git clone "$git_server/$course/$course-joj.git" "$grading_repo_path"
|
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
|
git -C "$grading_repo_path" switch --orphan grading
|
||||||
cat >"$grading_repo_path/Readme.md" <<EOF
|
cat >"$grading_repo_path/Readme.md" <<EOF
|
||||||
# $course JOJ grading
|
# $course JOJ grading
|
||||||
|
@ -46,9 +47,6 @@ EOF
|
||||||
git -C "$grading_repo_path" commit -m"docs: readme"
|
git -C "$grading_repo_path" commit -m"docs: readme"
|
||||||
git -C "$grading_repo_path" push -u origin grading
|
git -C "$grading_repo_path" push -u origin grading
|
||||||
fi
|
fi
|
||||||
# TODO: move this into if statement
|
|
||||||
git -C "$grading_repo_path" config user.name "$git_user"
|
|
||||||
git -C "$grading_repo_path" config user.email "$git_email"
|
|
||||||
|
|
||||||
git -C "$config_repo_path" reset --hard
|
git -C "$config_repo_path" reset --hard
|
||||||
git -C "$config_repo_path" pull --rebase
|
git -C "$config_repo_path" pull --rebase
|
||||||
|
|
Loading…
Reference in New Issue
Block a user