瀏覽代碼

Fixes issue with fetching non-current branches

main
Eric Amodio 1 年之前
父節點
當前提交
88c2e981a8
共有 1 個檔案被更改,包括 1 行新增6 行删除
  1. +1
    -6
      src/env/node/git/git.ts

+ 1
- 6
src/env/node/git/git.ts 查看文件

@ -870,12 +870,7 @@ export class Git {
if (options.upstream && options.pull) {
params.push('-u', options.remote, `${options.upstream}:${options.branch}`);
} else {
params.push(
options.remote,
options.upstream
? `${options.upstream}:refs/remotes/${options.remote}/${options.branch}`
: options.branch,
);
params.push(options.remote, options.upstream || options.branch);
}
} else if (options.remote) {
params.push(options.remote);

Loading…
取消
儲存