xbmc/xbmc — pull request #4099 by vkosh (2014-01-28 09:52:33+00:00)
Title: [configure] get git revision from xbmc git root

It checks .git directory in order to set XBMC GIT_REV env var.
This fixes the case when XBMC is built by buildroot from *.mk file. In this case XBMC hasn't .git directory, so 'git log' returns commits from topmost repository which is buildroot.