When opening a repository let libgit2 find the appropriate git directory
When opening a repository let libgit2 find the appropriate git directory

This is required when the repository's submodules
have been initialised with git 1.8, and their .git
is nested within the root project's.

If opened directly through the git directory,
libgit2 will lose track of which working directory
a user is trying to manipulate; will be unable to
find refs, and other such fun.
libgit2/objective-git,nerdishbynature/objective-git,phatblat/objective-git,javiertoledo/objective-git,javiertoledo/objective-git,blackpixel/objective-git,0x4a616e/objective-git,tiennou/objective-git,javiertoledo/objective-git,Acidburn0zzz/objective-git,slavikus/objective-git,c9s/objective-git,alehed/objective-git,tiennou/objective-git,TOMalley104/objective-git,0x4a616e/objective-git,libgit2/objective-git,phatblat/objective-git,royalwang/objective-git,slavikus/objective-git,blackpixel/objective-git,dleehr/objective-git,c9s/objective-git,pietbrauer/objective-git,blackpixel/objective-git,pietbrauer/objective-git,pietbrauer/objective-git,pietbrauer/objective-git,TOMalley104/objective-git,Acidburn0zzz/objective-git,phatblat/objective-git,0x4a616e/objective-git,javiertoledo/objective-git,c9s/objective-git,dleehr/objective-git,c9s/objective-git,alehed/objective-git,libgit2/objective-git,Acidburn0zzz/objective-git,slavikus/objective-git,dleehr/objective-git,TOMalley104/objective-git,misterfifths/objective-git,blackpixel/objective-git,dleehr/objective-git,tiennou/objective-git,alehed/objective-git,nerdishbynature/objective-git,misterfifths/objective-git,Acidburn0zzz/objective-git,nerdishbynature/objective-git,libgit2/objective-git,misterfifths/objective-git,misterfifths/objective-git,TOMalley104/objective-git