-
Notifications
You must be signed in to change notification settings - Fork 10
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
Prompt when local ref does not match remote ref #14
Comments
Hmm, this actually shouldn't be a problem, right? If you're on master, then it's going to create the deployment using the But it's still a good point, it's not really clear what sha is actually being deployed when the ref is resolved using git. |
Does it use the |
Yeah, it'll use the master ref if you're using v0.0.2. |
Ah, I was on v0.0.1. But yeah, would be nice to see the sha and provide a warning if it doesn't match the local sha. |
Yeah, that would be nice. It's pretty easy right now to push a commit, then deploy before the new HEAD actually registers on github. Could probably use the GET /repos/:owner/:repo/git/refs/:ref endpoint to resolve the branch to a sha and check that it matches HEAD |
I'll give it a shot when I have some time. |
This is still an issue actually. If I have repo1@develop checked out locally and run |
Ah yeah, that's definitely a legit bug. If you specify a repo on the command line, we shouldn't fallback to git. |
Say you're on master locally, if you
deploy -e production
it's possible that it's going to deploy an older version because someone has pushed remote master after you last pulled. You need to alwaysgit pull
if you're not providing the ref, to make sure that you're deploying the correct version.The text was updated successfully, but these errors were encountered: