Skip to content

Commit 83c6704

Browse files
fix: Fix git dubious ownership errors (#553)
1 parent 5e3e4f0 commit 83c6704

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Fixed
11+
- Fixed "dubious ownership" errors when cloning / fetching repos. [#553](https://github.com/sourcebot-dev/sourcebot/pull/553)
12+
1013
### Changed
1114
- Remove spam "login page loaded" log. [#552](https://github.com/sourcebot-dev/sourcebot/pull/552)
1215

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,9 @@ COPY --from=shared-libs-builder /app/packages/shared ./packages/shared
233233
# Configure dependencies
234234
RUN apk add --no-cache git ca-certificates bind-tools tini jansson wget supervisor uuidgen curl perl jq redis postgresql postgresql-contrib openssl util-linux unzip
235235

236+
# Fixes git "dubious ownership" issues when the volume is mounted with different permissions to the container.
237+
RUN git config --global safe.directory "*"
238+
236239
# Configure the database
237240
RUN mkdir -p /run/postgresql && \
238241
chown -R postgres:postgres /run/postgresql && \

0 commit comments

Comments
 (0)