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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events