git.py: Work around refs/HEAD issues with git over http (fixes #3410)
[vuplus_bitbake] / lib /
drwxr-xr-x   ..
drwxr-xr-x - bb