support pulling head from github branches