瀏覽代碼

Include detached HEAD as local ref

main
Ramin Tadayon 2 年之前
committed by Eric Amodio
父節點
當前提交
3e3104973c
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      src/env/node/git/localGitProvider.ts

+ 3
- 3
src/env/node/git/localGitProvider.ts 查看文件

@ -1756,7 +1756,7 @@ export class LocalGitProvider implements GitProvider, Disposable {
if (commit.tips) {
for (let tip of commit.tips.split(', ')) {
if (tip === 'refs/stash' || tip === 'HEAD') continue;
if (tip === 'refs/stash') continue;
if (tip.startsWith('tag: ')) {
refTags.push({
@ -1768,8 +1768,8 @@ export class LocalGitProvider implements GitProvider, Disposable {
continue;
}
current = tip.startsWith('HEAD -> ');
if (current) {
current = tip.startsWith('HEAD');
if (current && tip !== 'HEAD') {
tip = tip.substring(8);
}

Loading…
取消
儲存