]> git.ekhem.eu.org Git - server.git/commit
[git] Disable the safe directory check.
authorJakub Czajka <jakub@ekhem.eu.org>
Tue, 5 Nov 2024 21:29:25 +0000 (22:29 +0100)
committerJakub Czajka <jakub@ekhem.eu.org>
Tue, 5 Nov 2024 21:37:25 +0000 (22:37 +0100)
commit536a275f4a9c3a9d85fc68f03c53cda7a8f36c7e
tree0ef4f97f74601ccae84f67d292890010c3775be4
parent659dd8691cca5cf6eb13abd2d4965aaf0d5b8569
[git] Disable the safe directory check.

When working with a remote repository, git checks whether user
handling the request is also the owner of the git repository. This is
a problem when serving the repositories through ssh and http. The
former handles requests as user git while the latter as the user of
the webserver (e.g. www-data for nginx). Setting git as the owner of a
repository break serving through http, and vice versa. This commit
disables the check [1].

[1] https://stackoverflow.com/a/71904131
git/gitconfig [new file with mode: 0644]