abra app deploy seems to delete pending commits
#566
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Filing this "bug" just for documentation purposes. It's not actually a bug, I found out while recreating this that you can use
git reflogto find the previous commit SHA, thengit checkoutto recover it.When working on a new recipe, if you commit (but don't push) changes to the recipe and then run
abra app deploy, abra will perform some git operations that seems to delete pending commits.Steps to reproduce:
Start working on a new recipe, git repo initialized at commit
8f318943Start hacking on the recipe by committing a change but not pushing it yet:
Deploy the recipe:
Notice the commit is gone from the commit log:
The solution is to use
git reflogto find the previous commit SHA, thengit chekoutto recover it:@mac-chaffee thanks for opening!
yeh this is not ideal. the key lines from the logs are:
where the
abra app new testdropped(version: 8f318943)into the app.env.then
abra app deploychecks that out, causing the commits to be "lost".this seems like kind of an edge case but maybe we could improve the general situation with letting people know what version is pinned and that there are other commits? this is a general problem atm i think, as we just introduced the
.envversion pinning stuff. see #554 for more learning "on the job". we're getting into tricky UI/UX gymnastics then but maybe it's worth it. if you have ideas, i'm all ears.