The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with sha pointer ["error": "--from is not a valid sha pointer: \"origin/master\"",]

Łukasz Naporski
July 24, 2022

Hi,

I want to deploy only changed files (according to documentation: https://github.com/scolladon/sfdx-git-delta)
I add to yml:

- mkdir changed-sources
            - git status
            - git diff YMLEdit origin/master
            - sfdx sgd:source:delta --to "HEAD" -f origin/master --output changed-sources/ --generate-delta

without git diff i receive an error:
sfdx sgd:source:delta --to "HEAD" -f origin/master --output changed-sources/ --generate-delta
{
"error": "--from is not a valid sha pointer: \"origin/master\"",
"output": "changed-sources/",
"success": false,
"warnings": []
}
When I add git diff i receive this:
+ git diff YMLEdit origin/master
fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
Any ideas?

I tried using diffrent docker image
I tried using git fetch

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events