mirror of
https://github.com/tiktok/sparo.git
synced 2024-11-14 19:35:12 -05:00
feat: track remote branch when checkout to that branch
This commit is contained in:
parent
c3f9a14211
commit
465f67aa1a
1 changed files with 3 additions and 0 deletions
|
@ -237,6 +237,9 @@ export class CheckoutCommand implements ICommand<ICheckoutCommandOptions> {
|
|||
this._gitService.executeGitCommand({
|
||||
args: ['branch', branch, `${remote}/${branch}`]
|
||||
});
|
||||
this._gitService.executeGitCommand({
|
||||
args: ['remote', 'set-branches', '--add', remote, branch]
|
||||
});
|
||||
}
|
||||
|
||||
const branchExistsInLocal: boolean = Boolean(
|
||||
|
|
Loading…
Reference in a new issue