Closed KyrietS closed 4 years ago
When I try to push a folder into different repository to master branch I always get the warning:
Failed to fetch target branch, probably doesn't exist
When your action clones the target repo, it's already on master branch so then "git fetch origin master:master" fails and throws an error.
There are a few ways to solve this. The simplest one is to add "-u,--update-head-ok" to the line 261 of index.js
await exec(`git fetch -u origin ${config.branch}:${config.branch}` [...]
I tested this solution and the warning has gone.
Hope it helps :-)
Problem
When I try to push a folder into different repository to master branch I always get the warning:
When your action clones the target repo, it's already on master branch so then "git fetch origin master:master" fails and throws an error.
Solution
There are a few ways to solve this. The simplest one is to add "-u,--update-head-ok" to the line 261 of index.js
I tested this solution and the warning has gone.
Hope it helps :-)