git/errors: Fix code review issues

Panic in case ErrDirtyFile.relativePath is not set.

Change-Id: 08697dfa2b