Do not read /.git if it is a directory
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 27 Feb 2013 18:36:25 +0000 (19:36 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 27 Feb 2013 18:43:57 +0000 (18:43 +0000)
commitb5e2ea02980290ed04403d466a39e4602810bb0b
tree3485f4e7f39c37155b3d17c19a4b6f2dd3f3fff4
parentb0c9733827833e40ef3c90c2f184f243d11f8323
Do not read /.git if it is a directory

On my windows under eclipse with EGit there is a directory named .git,
but that gives warning, when read with file_get_contents:
Warning: file_get_contents(/.git) [function.file-get-contents]: failed
to open stream: Permission denied in \includes\GitInfo.php on line 49

Follow up Ieb79c0b4

Change-Id: I7c3ba323460a2fd3739d3912ee6420aa29311f4f
includes/GitInfo.php