devcontainers / devcontainers/cli

git worktree support

オープン
#796 コメント 16 件 リアクション 59 件 担当者 1 名 @chrmarti が担当を希望しています GitHub で見る
feature-request
主要言語
TypeScript
スター
3k
フォーク
457
平均マージ
13時間 17分
マージ済み PR(30日)
6

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。