diff --git a/roles/phabricator/templates/repo-gc.sh b/roles/phabricator/templates/repo-gc.sh index 6f28214..940130d 100644 --- a/roles/phabricator/templates/repo-gc.sh +++ b/roles/phabricator/templates/repo-gc.sh @@ -1,10 +1,11 @@ #!/bin/bash REPO_DIR='{{ repositories_path }}' for repo in $(ls $REPO_DIR); do cd $REPO_DIR/$repo if [ -f HEAD ]; then git gc --quiet || echo "Error $? with $REPO_DIR/$repo" >> /tmp/repo-gc.log + chown {{ www_user }}.{{ www_user }} -R $REPO_DIR/$repo fi done