Create a new utility function in git.py for setting the HEAD link