An idea on how to fix the issue with retrieving the git branch