Skip to content

Commit d3e844e

Browse files
author
Stanley Hu
authored
Merge branch 'main' into main
2 parents b3497c1 + 91162bb commit d3e844e

File tree

104 files changed

+215
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+215
-212
lines changed

Dockerfile.rootless

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ COPY docker/rootless /
5656
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea
5757
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
5858

59-
USER git:git
59+
USER 1000:1000 # git:git
6060
ENV GITEA_WORK_DIR /var/lib/gitea
6161
ENV GITEA_CUSTOM /var/lib/gitea/custom
6262
ENV GITEA_TEMP /tmp/gitea

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ misspell-check:
297297
GO111MODULE=off $(GO) get -u github.com/client9/misspell/cmd/misspell; \
298298
fi
299299
@echo "Running misspell-check..."
300-
@misspell -error -i unknwon,destory $(GO_SOURCES_OWN)
300+
@misspell -error -i unknwon $(GO_SOURCES_OWN)
301301

302302
.PHONY: misspell
303303
misspell:

cmd/dump.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ func runDump(ctx *cli.Context) error {
280280
}
281281

282282
if ctx.IsSet("skip-custom-dir") && ctx.Bool("skip-custom-dir") {
283-
log.Info("Skiping custom directory")
283+
log.Info("Skipping custom directory")
284284
} else {
285285
customDir, err := os.Stat(setting.CustomPath)
286286
if err == nil && customDir.IsDir() {

cmd/hook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Gitea or set your environment appropriately.`, "")
165165
}
166166
}
167167

168-
// the environment setted on serv command
168+
// the environment is set by serv command
169169
isWiki := os.Getenv(models.EnvRepoIsWiki) == "true"
170170
username := os.Getenv(models.EnvRepoUsername)
171171
reponame := os.Getenv(models.EnvRepoName)
@@ -320,7 +320,7 @@ Gitea or set your environment appropriately.`, "")
320320
}
321321
}
322322

323-
// the environment setted on serv command
323+
// the environment is set by serv command
324324
repoUser := os.Getenv(models.EnvRepoUsername)
325325
isWiki := os.Getenv(models.EnvRepoIsWiki) == "true"
326326
repoName := os.Getenv(models.EnvRepoName)

cmd/migrate_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func runMigrateStorage(ctx *cli.Context) error {
184184
return fmt.Errorf("Unsupported storage: %s", ctx.String("type"))
185185
}
186186

187-
log.Warn("All files have been copied to the new placement but old files are still on the orignial placement.")
187+
log.Warn("All files have been copied to the new placement but old files are still on the original placement.")
188188

189189
return nil
190190
}

cmd/web_letsencrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
func runLetsEncrypt(listenAddr, domain, directory, email string, m http.Handler) error {
2020

2121
// If HTTP Challenge enabled, needs to be serving on port 80. For TLSALPN needs 443.
22-
// Due to docker port mapping this can't be checked programatically
22+
// Due to docker port mapping this can't be checked programmatically
2323
// TODO: these are placeholders until we add options for each in settings with appropriate warning
2424
enableHTTPChallenge := true
2525
enableTLSALPNChallenge := true

contrib/update_dependencies.sh

100644100755
File mode changed.

custom/conf/app.example.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ PATH =
659659
;; Public is for users visible for everyone
660660
;DEFAULT_USER_VISIBILITY = public
661661
;;
662-
;; Set whitch visibibilty modes a user can have
662+
;; Set which visibility modes a user can have
663663
;ALLOWED_USER_VISIBILITY_MODES = public,limited,private
664664
;;
665665
;; Either "public", "limited" or "private", default is "public"

docker/root/etc/s6/gitea/setup

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if [ ! -f ${GITEA_CUSTOM}/conf/app.ini ]; then
2323
INSTALL_LOCK=true
2424
fi
2525

26-
# Substitude the environment variables in the template
26+
# Substitute the environment variables in the template
2727
APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \
2828
RUN_MODE=${RUN_MODE:-"prod"} \
2929
DOMAIN=${DOMAIN:-"localhost"} \

docker/rootless/usr/local/bin/docker-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [ ! -f ${GITEA_APP_INI} ]; then
2525
INSTALL_LOCK=true
2626
fi
2727

28-
# Substitude the environment variables in the template
28+
# Substitute the environment variables in the template
2929
APP_NAME=${APP_NAME:-"Gitea: Git with a cup of tea"} \
3030
RUN_MODE=${RUN_MODE:-"prod"} \
3131
RUN_USER=${USER:-"git"} \

0 commit comments

Comments
 (0)