voteliquid / sf-legislation

Parse SF Board of Supervisor agendas
https://github.com/liquidvote/sf-legislation/tree/master/json
2 stars 1 forks source link

Automatically commit newly downloaded agenda to git #6

Open dsernst opened 7 years ago

dsernst commented 7 years ago

Something like:

# Throws if git status is not completely empty

if ! git diff-index --quiet HEAD --; then
  echo "git status has uncommitted changes"
  exit 1
fi