Patch Set 1: Looks good to me, but someone else must approve

I'm afraid that we cannot check "is git managed project" earlier. IMO also adding such check will be more expensive then changes proposed in this patch.