mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-03 13:29:43 +00:00
improvements
This commit is contained in:
parent
7a8fdc2963
commit
869f3aedd3
@ -93,8 +93,7 @@ func checkEnablePushOptions(ctx context.Context, logger log.Logger, autofix bool
|
|||||||
numRepos++
|
numRepos++
|
||||||
|
|
||||||
if autofix {
|
if autofix {
|
||||||
err := gitrepo.GitConfigSet(ctx, repo, "receive.advertisePushOptions", "true")
|
return gitrepo.GitConfigSet(ctx, repo, "receive.advertisePushOptions", "true")
|
||||||
return err
|
|
||||||
}
|
}
|
||||||
|
|
||||||
value, err := gitrepo.GitConfigGet(ctx, repo, "receive.advertisePushOptions")
|
value, err := gitrepo.GitConfigGet(ctx, repo, "receive.advertisePushOptions")
|
||||||
|
Loading…
Reference in New Issue
Block a user