repo git: error out when files can't be added to the database. closes #1212