Skip to content
This repository has been archived by the owner on Feb 26, 2019. It is now read-only.

handle detached git on restore #464

Merged
merged 1 commit into from
May 10, 2016
Merged

handle detached git on restore #464

merged 1 commit into from
May 10, 2016

Conversation

freeformz
Copy link

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).

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).
@freeformz
Copy link
Author

This is because of this: golang/go@4220659

This doesn't "fix" anything for non godep users, just allows godep restore to work properly.

@freeformz
Copy link
Author

This came up in #453

@freeformz freeformz merged commit 0e7242e into master May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant