Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Travis] Allow detached head when parsing master ref. #2286

Merged
merged 1 commit into from
Mar 28, 2015

Commits on Mar 28, 2015

  1. Allow detached head when parsing master ref.

    If we have checked out a commit instead of a branch name, git is in what’s known as “detached head” state.
    
    This is what Travis does all the time.
    
    This means that we were never considered to be on the branch “master”, and therefore were never publishing bower-chosen.
    
    We can tweak the git command we’re calling to support either checked out branch names or detached heads — as long as we’re at the commit for a commit that is the head of master, we’re peachykeen!
    adunkman committed Mar 28, 2015
    Configuration menu
    Copy the full SHA
    6c993b1 View commit details
    Browse the repository at this point in the history