Closed freeformz closed 8 years ago
This is because of this: https://github.com/golang/go/commit/42206598671a44111c8f726ad33dc7b265bdf669
This doesn't "fix" anything for non godep users, just allows godep restore to work properly.
This came up in #453
If the git repo is detached, we need to determine the default remote branch before attempting to donwload (can't pull into a repo in detached state).
This attempts to use "git remote show origin" to have the origin tell us what the default branch is.
PS: this may not work with old (~3 year old git servers).