File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ RUN apk --no-cache add build-base git nodejs npm
1616COPY . ${GOPATH}/src/code.gitea.io/gitea
1717WORKDIR ${GOPATH}/src/code.gitea.io/gitea
1818
19+ # Remove .git because of -buildvcs and submodule issue
20+ RUN rm -f .git
21+
1922# Checkout version if set
2023RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}" ; fi \
2124 && make clean-all build
Original file line number Diff line number Diff line change 1- FROM golang:1.17 -alpine3.15
1+ FROM golang:1.19 -alpine3.16
22
33ARG GOPROXY
44ENV GOPROXY ${GOPROXY:-direct}
@@ -30,6 +30,9 @@ RUN apk --no-cache add \
3030COPY . /go/src/code.gitea.io/gitea
3131WORKDIR /go/src/code.gitea.io/gitea
3232
33+ #Remove .git because of -buildvcs and submodule issue
34+ RUN rm -f .git
35+
3336RUN npm install --no-save
3437RUN make build
3538
Original file line number Diff line number Diff line change @@ -808,7 +808,7 @@ func UploadFilePostJson(ctx *context.Context) {
808808 Message : message ,
809809 Files : form .Files ,
810810 }); err != nil {
811- if models .IsErrLFSFileLocked (err ) {
811+ if git_model .IsErrLFSFileLocked (err ) {
812812 response ["message" ] = ctx .Tr ("repo.editor.upload_file_is_locked" )
813813 ctx .JSON (http .StatusUnauthorized , response )
814814 } else if models .IsErrFilenameInvalid (err ) {
You can’t perform that action at this time.
0 commit comments