Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

deployment to git should check if branch name has changed #64

Open
garfieldnate opened this issue Jul 20, 2015 · 0 comments
Open

deployment to git should check if branch name has changed #64

garfieldnate opened this issue Jul 20, 2015 · 0 comments

Comments

@garfieldnate
Copy link

I first ran deploy to the gh-pages branch, then re-read the documentation and realized that it should be master. When I changed the deploy branch, however, I could no longer deploy. I would always get this error:

error: src refspec master does not match any. 

This took a while to figure out, but it turned out that the git repository created by octopress deploy was saved in .deploy, and the branch was still gh-pages. Git was failing because the master branch did not exist. To fix this, I had to delete the .deploy directory manually and rerun octopress deploy.

It would be nice if the deploy script checked that the branch in the .deploy directory matched the branch given by the current value of the branch parameter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant