loft-sh / devpod

Codespaces but open-source, client-only and unopinionated: Works with any IDE and lets you use any cloud, kubernetes or just localhost docker.
https://devpod.sh
Mozilla Public License 2.0
9.45k stars 342 forks source link

Support useHttpPath for git credentials #1384

Open sthussey opened 1 day ago

sthussey commented 1 day ago

Looking to use Devpod w/ git repos hosted in Azure Devops. We are using Git Credential Manager locally to manage credentials to https origins. Repos must be configured with useHttpPath in order for the credentials to work. However when creating a new devpod, it is not possible to automatically configure git to useHttpPath along with the git credential helper using the devpod agent.

Would be nice if I could optionally tell Devpod for a new workspace to configure useHttpPath when setting up the git credential helper for devpod agent. Something like GIT_CREDENTIAL_USEHTTPATH

The workaround now is to manually git config --global credential.useHttpPath in the VS Code terminal on a new devpod

Happy to put up a PR if this change sounds good.

bkneis commented 9 hours ago

Hi @sthussey thanks for reporting this! that sounds like a very useful feature to devpod, your implementation sounds good to me. If you can provide a PR i'll be happy to review.