Skip to content

Commit f546b84

Browse files
committed
fix: Dubious ownership of repositories
Fix for "fatal: detected dubious ownership in repository" error Ref: https://technofossy.com/how-to-fix-fatal-detected-dubious-ownership-in-repository-git-error/
1 parent 4283ea0 commit f546b84

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,6 @@ COPY nginx.conf /etc/nginx/conf.d/default.conf
2424

2525
# Configure GitWeb
2626
COPY gitweb.conf /etc/gitweb.conf
27+
28+
# Configure Git to avoid ownership errors
29+
RUN set -eux; git config --system --add safe.directory '/srv/git/*'

0 commit comments

Comments
 (0)