pr-train icon indicating copy to clipboard operation
pr-train copied to clipboard

Fails when master is not checked out locally

Open princed opened this issue 7 years ago • 2 comments

Version: 2.2.2 Stacktrace:

fatal: malformed object name master

❌  An error occured. Was there a conflict perhaps?
error Error: fatal: malformed object name master

    at /Users/eugene/.config/yarn/global/node_modules/simple-git/promise.js:21:26
    at Git.<anonymous> (/Users/eugene/.config/yarn/global/node_modules/simple-git/src/git.js:645:18)
    at Function.Git.fail (/Users/eugene/.config/yarn/global/node_modules/simple-git/src/git.js:1478:18)
    at fail (/Users/eugene/.config/yarn/global/node_modules/simple-git/src/git.js:1436:20)
    at /Users/eugene/.config/yarn/global/node_modules/simple-git/src/git.js:1445:16
    at process._tickCallback (internal/process/next_tick.js:68:7)

princed avatar Dec 11 '18 06:12 princed

Ah yes, it does depend on master being there (I do some checking there if the branch was already merged into master so that we don't push already merged branches). I guess we don't really need that anymore (it was for pr-train 1.0 where you couldn't easily remove branches from the train).

But that should be the only place, methinks.

realyze avatar Dec 11 '18 06:12 realyze

Thanks for the report btw :)

realyze avatar Dec 11 '18 06:12 realyze