1.0dev: avoid internal errors when a Git repository has an invalid path.
Patch by Peter Suter on #10819.
Authored by: cboos 2012-08-30
Parent: [r11225]
Child: [r11227]