feat/reposize #56
No reviewers
Labels
No Label
bug
component
executor
component
framework
component
parser
component
UI
duplicate
enhancement
help wanted
invalid
priority
p0
priority
p1
priority
p2
priority
p3
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: JOJ/JOJ3#56
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/reposize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pr should be ready
https://focs.ji.sjtu.edu.cn/git/JOJ/JOJ3-examples/src/branch/healthcheck/reposize/expected.json
@bomingzh
WIP: feat/reposizeto feat/reposize@ -11,3 +11,3 @@
// RepoSize checks the size of the repository to determine if it is oversized.
// It executes the 'git count-objects -v' command to obtain the size information,
func RepoSize() error {
func RepoSize(conf_size float64) error {
We use camel case for variables in Go project.
@ -36,2 +36,2 @@
if sum > 2048 {
return fmt.Errorf("Repository larger than 2MB. Please clean up or contact the teaching team.")
if sum > int(conf_size*1024) {
return fmt.Errorf("Repository larger than %f M. Please clean up or contact the teaching team.", conf_size)
We should use
%.1f Mib
here for clearance.