Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update prod msg #26

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions auth/gitee.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ func verifyUser(userInRepo UserInRepo) error {
msg := fmt.Sprintf("forbidden: user %s has no permission to upload to %s/%s",
userInRepo.Username, userInRepo.Owner, userInRepo.Repo)
remindMsg := " \n如果您正在向fork仓库上传大文件,请确认您已使用如下命令修改了本地仓库的配置:" +
"\n`git config --local lfs.url https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}`" +
",\n其中{owner}/{repo}请改为您fork之后的仓库的名称。" +
"详阅:https://github.com/opensourceways/BigFiles/blob/master/docs/QuickStart.md"
"\n`git config --local lfs.url https://artifacts.openeuler.openatom.cn/{owner}/{repo}`" +
",\n其中{owner}/{repo}请改为您fork之后的仓库的名称"
logrus.Error(fmt.Sprintf("verifyUser | %s", msg))
return errors.New(msg + remindMsg)
} else if userInRepo.Operation == "download" {
Expand Down
4 changes: 2 additions & 2 deletions docs/BasicGuide.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@ Git LFS initialized.

```
[lfs]
url = https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}
url = https://artifacts.openeuler.openatom.cn/{owner}/{repo}
```

- 或者通过命令行设置仓库中LFS远程地址:

```
git config --local lfs.url https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}
git config --local lfs.url https://artifacts.openeuler.openatom.cn/{owner}/{repo}
```

> - 当存在.lfsconfig文件时,使用命令行进行LFS远程地址设置的优先级将高于.lfsconfig文件。
Expand Down
6 changes: 3 additions & 3 deletions docs/QuickStart.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@

```
[lfs]
url = https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}
url = https://artifacts.openeuler.openatom.cn/{owner}/{repo}
```

- 或者通过命令行设置仓库中LFS远程地址:

```
$ git config --local lfs.url https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}
$ git config --local lfs.url https://artifacts.openeuler.openatom.cn/{owner}/{repo}
```

> 当存在.lfsconfig文件时,使用命令行进行LFS远程地址设置的优先级将高于.lfsconfig文件。
Expand All @@ -31,7 +31,7 @@ $ git config --local lfs.url https://openeuler-bigfiles.test.osinfra.cn/{owner}/
- 当您fork一个仓库:将fork仓库克隆到本地后,需手动使用如下命令修改本地仓库的lfs配置:

```
$ git config --local lfs.url https://openeuler-bigfiles.test.osinfra.cn/{owner}/{repo}
$ git config --local lfs.url https://artifacts.openeuler.openatom.cn/{owner}/{repo}
```

- 当您使用ssh协议进行克隆或推送:克隆或推送大文件时仍需输入用户名和密码进行认证。
Expand Down