devcontainers / devcontainers/cli

git worktree support

Đang mở
#796 16 bình luận 59 reaction 1 người được giao Được @chrmarti nhận Xem trên GitHub
feature-request
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

If you try to open a project with a devcontainer that is actually a worktree, the started container does not work as expected.
In a worktree, `.git` is not a directory, but a file containing:

```
gitdir: /hostpath/to/real/git
```

If the container uses git commands, all those will fail with different error messages. Commits will not work, submodules will fail among other things.

## fixes
What could possible work is to read the gitdir value and add this directory as volume to the same name as specified in the `.git` file.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.