git: fix crash when committing renames with spaces. closes #1267