Skip to content

Commit 8353711

Browse files
authored
Merge pull request #77 from LibreCodeCoop/fix/order-of-git-commands
fix: order of git commands
2 parents 1914e4e + 388cffd commit 8353711

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.docker/scripts/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ groupmod --non-unique --gid "${HOST_GID}" www-data
66

77
# Clone Nextcloud repository, if needed
88
if [ ! -d ".git" ]; then
9+
git config --global --add safe.directory /var/www/html
910
git init
1011
git remote add origin https://github.com/nextcloud/server
1112
git fetch --depth=1 origin "${VERSION_NEXTCLOUD}"
1213
git checkout "${VERSION_NEXTCLOUD}"
1314
git submodule update --init --recursive
14-
git config --global --add safe.directory /var/www/html
1515
mkdir data
1616
mkdir apps-writable
1717
mkdir apps-extra

0 commit comments

Comments
 (0)