question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pathspec 'develop' did not match any file(s) known to git

See original GitHub issue

Describe the bug A clear and concise description of what the bug is.

I use shipjs trigger with github actions. But actions can’t checkout baseBranch develop. Error log is here.

base branch => develop release branch => master

To Reproduce Steps to reproduce the behavior:

  1. Run npm run release:prepare on develop.
  2. merge PR.
  3. There is error…

Expected behavior Pass shipjs trigger

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

  • environment: (your local machine, CircleCI, Travis CI, etc.)
  • node -v: 12.x
  • npm -v or yarn -v:
  • Ship.js version: 0.18.2

Additional context It might be caused by actions/checkout@v2😭

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tyankatsu0105commented, Apr 26, 2020
1reaction
jeetisscommented, Apr 25, 2020

Hello @tyankatsu0105 I think that fetch-depth: 0 parameter for actions/checkout should help you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

error: pathspec '...' did not match any file(s) known to git - Stack ...
A complete clone might not be required. If the branch is created by someone else AFTER you originally cloned the repo, you get...
Read more >
Git errors: cannot checkout branch - DEV Community ‍ ‍
Git errors: cannot checkout branch - error: pathspec 'branch_name' did not match any file(s) known to git · The branch name is misspelled...
Read more >
Error: pathspec 'develop' did not match any file(s) known to git.
I think this error typically happens when there's either no matching branch_name in your locally fetched repos, OR there's multiple clones of ...
Read more >
Git: cannot checkout branch - error: pathspec '…' did not match ...
1 Answer ... If you have deleted a branch with git branch -D yourbranchname and pulled/cloned again your repo, you may need to...
Read more >
error pathspec did not match any file s known to git - Edureka
It just takes information about new branches and no actual code. After that, the git checkout should work fine.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found