Turns out checkout of subrepo branch in command:pull() was unnecessary.
Merge branch 'RemoveUnnecessaryCheckoutInPullCommandFix' into dev