Skip to content

Commit

Permalink
Fix local use of safe directory config
Browse files Browse the repository at this point in the history
  • Loading branch information
Jafner committed Sep 6, 2023
1 parent 689c236 commit 67a9490
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ case $SOURCE in
git sparse-checkout init
else
echo " === Using existing git repository"
git config http.postBuffer 524288000 # Fix buffer issue on Git Bash
git config https.postBuffer 524288000 # Fix buffer issue on Git Bash
git config --add safe.directory '/usr/local/apache2/htdocs' # Disable directory ownership checking, required for mounted volumes
git config --global http.postBuffer 524288000 # Fix buffer issue on Git Bash
git config --global https.postBuffer 524288000 # Fix buffer issue on Git Bash
git config --global --add safe.directory '/usr/local/apache2/htdocs' # Disable directory ownership checking, required for mounted volumes
fi
if [[ "$SOURCE" == *"NOIMG"* ]]; then # if user does not want images
echo -e '/*\n!img' > .git/info/sparse-checkout # sparse checkout should include everything except the img directory
Expand Down

0 comments on commit 67a9490

Please sign in to comment.