The symlink in /var/cache/git was not backed up/restored. Remedied with the following commands:
cd /var/cache/git ln -s /srv/repos/git/foo/.git ./foo.git
cd /var/cache/git
ln -s /srv/repos/git/foo/.git ./foo.git
More information about text formats
Found it
The symlink in /var/cache/git was not backed up/restored. Remedied with the following commands: