microsoft / microsoft/vscode-remote-release

git includeIf config wont get applied

Open
#10,936 6 comments 1 reaction 1 assignee View on GitHub

Nobody has claimed this yet.

bug git wsl
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

Here is an issue that was fixed of someone who had this issue a long time ago: https://github.com/Microsoft/vscode-remote-release/issues/5312

  • VS Code Version: tested with stable and insiders (as remote). It works, if I use the vscodium fork directly in WSL or on my real Linux machine.
  • Local OS Version: Win11
  • Remote OS Version: NixOS-WSL and alpine linux wsl
  • Remote Extension/Connection Type: Dev Containers/WSL/Remote - Tunnels/VS Code Server

Steps to Reproduce:

mkdir vscodeGithooksBug
cd vscodeGithooksBug
echo "" >> ~/.gitconfig
echo "[includeIf \"gitdir:$(pwd)/\"]" >> ~/.gitconfig
echo "    path = $(pwd)/.gitconfig" >> ~/.gitconfig
echo "[core]" >> .gitconfig
echo "hooksPath = $(pwd)" >> .gitconfig
echo "#!/usr/bin/env sh" >> prepare-commit-msg
echo 'echo "HookTitle - $(cat $1)" > $1' >> prepare-commit-msg
chmod +x prepare-commit-msg
git init
echo test > test.txt
git add . && git commit -m "test via git CLI"
git log
echo testVScode > test.txt
code .

Then try to commit via vscode.

I think a few VSCode versions ago, like one or two month ago it worked, but since two weeks it doesnt.

Does this issue occur when you try this locally?: No
Does this issue occur when you try this locally and all extensions are disabled?: No

I would love to help you more and contribute fixes, but unfortunately this is closed-source :(

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.