devcontainers / devcontainers/cli

git worktree support

Ouverte
#796 16 commentaires 59 réactions 1 personne assignée Réclamée par @chrmarti Voir sur GitHub
feature-request
Langage dominant
TypeScript
Étoiles
3k
Forks
457
Merge moyen
13 h 17 min
PR mergées (30 j)
6

Description

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.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.