repo git: Detect more disk space errors. Fixes #1529