Skip to content

git.defaultCloneDirectory doesn't handle '~' for home directory well #31878

@flipphillips

Description

@flipphillips
  • VSCode Version: Code - Insiders 1.15.0-insider (f39385b, 2017-08-01T05:07:59.267Z)
  • OS Version: Darwin x64 17.0.0
  • Extensions:
Extension Author (truncated) Version
vscode-markdownlint Dav 0.10.0
latex-workshop Jam 3.1.2
code-settings-sync Sha 2.8.2
project-manager ale 0.18.1
githistory don 0.2.2
python don 0.6.9
gitlens eam 4.3.3
git-project-manager fel 1.3.2
sftp lix 0.7.7
vscode-zipexplorer sle 0.2.0

Steps to Reproduce:

  1. set git.defaultCloneDirectory ala
    "git.defaultCloneDirectory": "~/GitHub"

  2. checkout repository

Expected result:

  1. git clone to home directory/GitHub
  2. proper opening of folder/project w/ VSC

Actual result:

  1. checkout goes to the ether somewhere
  2. when saying 'OK' to open the project an error appears saying "/~/GitHub" does not exist (which, of course, it shouldn't)

Regression:

The main reason I'm doing this is because I like to share my settings across machines where each has a different users directory (e.g., /usr/flip on unix boxes, /Users/flip on macOS, etc.

Alternately, some sort of HOME directory token might make sense? $HOME or some such?

Reproduces without extensions: Yes/No

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalitygitGIT issuesgood first issueIssues identified as good for first-time contributorshelp wantedIssues identified as good community contribution opportunitiesverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions