You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run craft prepare step on the repository that has no Git tags.
Expected Result
prepare runs successfully.
Actual Result
The following error happened:
Error: fatal: No names found, cannot describe anything.
at Object.action (/usr/local/bin/craft:549:10630)
at uMe.exec (/usr/local/bin/craft:549:10942)
at /usr/local/bin/craft:548:6689
at new Promise (<anonymous>)
at lA.handleTaskData (/usr/local/bin/craft:548:6578)
at lA.<anonymous> (/usr/local/bin/craft:548:6204)
at Generator.next (<anonymous>)
at a (/usr/local/bin/craft:545:1507)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Error: Process completed with exit code 1.
It looks like craft prepare fails here when trying to fetch the latest tag from the repository:
Environment
What version are you running? 1.2.2
Steps to Reproduce
Run
craft prepare
step on the repository that has no Git tags.Expected Result
prepare
runs successfully.Actual Result
The following error happened:
It looks like
craft prepare
fails here when trying to fetch the latest tag from the repository:craft/src/commands/prepare.ts
Line 500 in d0bfdaf
...or more specifically, here:
craft/src/utils/git.ts
Line 38 in d0bfdaf
Suggestion
getLatestTag()
should not fail if there are no existing tags on the repository. The default return value can be an empty string, for example.The text was updated successfully, but these errors were encountered: