Skip to content

Commit

Permalink
Use porcelain option with git push (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
niknetniko committed Dec 14, 2018
1 parent f3a591b commit 9bf842d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/scraper/resto.sh
Expand Up @@ -58,6 +58,7 @@ git add .
# The first part prevents git from committing nothing, resulting in an error
git diff-index --quiet HEAD || git commit -m "Scraper: new data from $today"

# Porcelain prevents git from writing non-errors to stderr, resulting in emails
if [[ "$push" == true ]]; then
git push
git push --porcelain
fi

0 comments on commit 9bf842d

Please sign in to comment.