-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Add --no-history option to not push parent history for gh_deploy #2594
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution. This will be accepted.
Co-authored-by: Oleh Prypin <oleh@pryp.in>
Actually you know what? I have tried all kinds of combinations and I still can't guess what this flag does, or, to me it appears to not do anything. I used |
Is it supposed to affect the time of creation of a new branch, or is it about an existing destination branch? |
It affects the destination branch. If the destination branch already contains commits from a previous deployment, using An example scenario is simply running |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it seems this PR simply makes use of ghp-import's no_history
option, which in turn creates a commit without a parent one. I'll have to test it on one of my projects to really see how it behaves.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay.
Indeed it works as per the description.
Replace the whole Git history with one new commit.
No description provided.