Closed tsuikevi-twosigma closed 4 years ago
Running git meta checkout throws an error if it's passed a path to an unopened submodule e.g.
~/P/g/foo [master]× » gm checkout -- . Error: could not find repository from '/Users/kevintsui/Projects/git-meta/foo/au/gp/unm'
This change avoids this error by not applying the checkout operation to unopened submodules.
Ended up only covering the case where $rev is empty. Checking for HEAD was doable but not as clean as I would have liked for this partial fix so decided not to implement it.
$rev
HEAD
Running git meta checkout throws an error if it's passed a path to an unopened submodule e.g.
This change avoids this error by not applying the checkout operation to unopened submodules.