Closed rafasc closed 5 years ago
Hmm, fair enough. (Why would someone do that... OTOH two commands are better than one, I suppose.)
How do I get github to acknowledge a manual cherry-pick... merged via c88459d5445d2b5dc98f5960bfb126eefe001db6.
I should've also mentioned the two better than one, plus no subshell in the commit message. But got distracted with the why it doesn't work I mentioned on #3. Anyways... Thanks for taking it. :)
2d4274c (Abort when the repository has no commits., 2018-09-26) tries to exit gracefully with a helpful error message when it isn't possible to use
git subtree
because the repository is in the unborn branch state.This usually happens right after the repository initialization but it can also happen after
git checkout --orphan=foo
. The current sanity check detects the former but not the latter.Use
rev-parse --verify
in order to only proceed if HEAD is resolvable, detecting both cases.