faiproject/fai — pull request #4 by bneuburg (2012-07-11 14:55:49+00:00)
Title: git bare repo as FAI_CONFIG_SRC fails with "fatal: Not a git repository /var/lib/fai/config/.git"

Hi. I was initially using an NFS config source with FAI under wheezy, then I tried to switch to a git url (FAI_CONFIG_SRC=git://myhost/myconfigspace.git). FAI threw a FATAL ERROR.

Inside /var/lib/fai there were not only the files I checked into the git repo but also the git control files (e.g. HEAD, refs/).
IMO the clone command in get-config-dir-git should check out to $GIT_DIR, see the patch. After fixing it, installation is successful.