Handle non-directory .git when looking up git revisions, which can occur when using Sirikata as a submodule.
Handle non-directory .git when looking up git revisions, which can occur when using Sirikata as a submodule.

sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata,sirikata/sirikata