Skip to content

Conversation

wxiaoguang
Copy link
Contributor

@wxiaoguang wxiaoguang commented Jun 30, 2022

The "units" should be splitted to string slice, to match the old behavior and match the dump-repo's behavior https://github.com/go-gitea/gitea/blob/main/cmd/dump_repo.go#L129-L130

Before, the #19953 was misled by #19935 (sorry that I didn't find the problem at that time, just followed these 3 LGTMs).

This PR should make everything correct and consistent, and more stable by trimming / checking

…ice, to match the old behavior and match the dump-repo's behavior
@wxiaoguang wxiaoguang changed the title Fix cli command restore-repo: "units" Fix cli command restore-repo: "units" should be parsed as cli.String Jun 30, 2022
@wxiaoguang wxiaoguang added backport/done All backports for this PR have been created backport/v1.17 labels Jun 30, 2022
@GiteaBot GiteaBot added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 30, 2022
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 1, 2022
@wxiaoguang wxiaoguang added this to the 1.18.0 milestone Jul 1, 2022
@wxiaoguang wxiaoguang added the skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. label Jul 1, 2022
@lunny
Copy link
Member

lunny commented Jul 1, 2022

LGTM

@lunny lunny merged commit 7c1f18a into go-gitea:main Jul 1, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 1, 2022
* upstream/main:
  Fix cli command restore-repo: "units" should be splitted to string slice, to match the old behavior and match the dump-repo's behavior (go-gitea#20183)
  [skip ci] Updated translations via Crowdin
  Fix `dump-repo` git init, fix wrong error type for NullDownloader (go-gitea#20182)
  Check if project has the same repository id with issue when assign project to issue (go-gitea#20133)
  [skip ci] Updated translations via Crowdin
@wxiaoguang wxiaoguang deleted the fix-restore-repo branch July 4, 2022 05:39
vsysoev pushed a commit to IntegraSDL/gitea that referenced this pull request Aug 10, 2022
…ice, to match the old behavior and match the dump-repo's behavior (go-gitea#20183)
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport/done All backports for this PR have been created lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. skip-changelog This PR is irrelevant for the (next) changelog, for example bug fixes for unreleased features. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants