sfdx-git-delta picking up previous delta changes #674
Answered
by
j-obrien97
j-obrien97
asked this question in
Q&A
-
Experiencing an issue where the delta package is created successfully, however, when going to make another change in the repository, on the pr build (and completion) pipeline included the previous delta changes. Pipeline is an Azure DevOps Pipeline running on a YAML file. Main guts of the YAML below:
I would expect that after the PR completes, 'origin/master' would include the previous changes. Am i incorrect? |
Beta Was this translation helpful? Give feedback.
Answered by
j-obrien97
Aug 25, 2023
Replies: 1 comment 10 replies
-
Hi @j-obrien97 ! Thanks for those information. I have questions:
|
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @scolladon
Ive actually have been able to resolve my issues.
So for the "HEAD~1" format not working correctly, I needed to set my fetchDepth to 0 in the steps piece of the yaml, that corrected my post merge pipeline. I wasnt aware but in 2019(?) Azure made it so that new pipelines fetchDepth was automatically set to shallow, so this piece is a necessity :
steps:
persistCredentials: true
fetchDepth: 0
For the bringing back multiple changes into the delta. I found that using $(git rev-parse origin/master) is the way to go. I had been messing around with the commits but when i would try to add remotes/origin or just origin/ it was failing. But the command by itself seems…