mirror of
https://gitea.com/gitea/tea
synced 2025-11-13 04:32:03 +01:00
This PR adds validation for the `--object-format` flag in the `repo create` command. The flag now accepts only `sha1` or `sha256` as valid values, and returns an error for any other value. Changes: - Added validation in `runRepoCreate` to check for valid object format values - Added unit tests to verify the validation logic - Fixed the field name from `ObjectFormat` to `ObjectFormatName` to match the SDK The changes ensure that users get clear error messages when using invalid object format values, improving the user experience. Fix #727 Fix #660 Fix #767 Co-authored-by: techknowlogick <techknowlogick@noreply.gitea.com> Reviewed-on: https://gitea.com/gitea/tea/pulls/741 Reviewed-by: TheFox0x7 <thefox0x7@noreply.gitea.com> |
||
|---|---|---|
| .. | ||
| issue_create.go | ||
| issue_edit.go | ||
| labels_export.go | ||
| labels.go | ||
| login_create.go | ||
| login_httpsign.go | ||
| login_ssh.go | ||
| milestone_create.go | ||
| pull_checkout.go | ||
| pull_clean.go | ||
| pull_create_test.go | ||
| pull_create.go | ||
| pull_merge.go | ||
| pull_review.go | ||
| repo_clone.go | ||