microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.73k stars 29.09k forks source link

Git does not support gitconfig's includeIf syntax #229433

Open navneetkarnani opened 1 month ago

navneetkarnani commented 1 month ago

Type: Bug

Follow instructions here: https://blog.mandraketech.in/managing-multiple-git-accounts

to create two profiles, one for work, and another for personal. Do not need to use the ssh key differentiator for now, but just the gitconfig changes would do.

Go into the "work" directory, and run git config --list. Correctly shows the resolved values of user.name and user.email

Now open a devcontainer based environment located within this directory.

See that the git config --list inside the devcontainer will not resolve any of the variables. It just has the includeif entries.

Expected behaviour: git config should have the "resolved" values inside the devcontainer.

VS Code version: Code 1.93.1 (38c31bc77e0dd6ae88a4e9cc93428cc27a56ba40, 2024-09-11T17:20:05.685Z) OS version: Darwin arm64 24.0.0 Modes:

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (10 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|3, 4, 5| |Memory (System)|16.00GB (0.21GB free)| |Process Argv|| |Screen Reader|no| |VM|0%|
Extensions (15) Extension|Author (truncated)|Version ---|---|--- ng-template|Ang|18.2.0 atlascode|atl|3.0.10 shell-syntax|bma|1.0.5 npm-intellisense|chr|1.4.5 EditorConfig|Edi|0.16.4 gitlab-workflow|Git|5.12.0 vscode-env|Iro|0.1.0 git-graph|mhu|1.30.0 vscode-docker|ms-|1.29.2 remote-containers|ms-|0.384.0 vscode-yaml|red|1.15.0 cody-ai|sou|1.34.3 vscode-icons|vsc|12.9.0 gitblame|wad|11.0.1 vscode-caddyfile-syntax|zam|1.0.4
vs-code-engineering[bot] commented 4 weeks ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!