Skip to content

Git Dependency fails to install when space exists in User Folder name #2015

@granttrevor

Description

@granttrevor

Description

I have a user folder that has a space in it eg: C:\Users\Firstname Lastname
Git dependency resolution fails when attempting to clone from C:\Users\Firstname Lastname.paket\git\db\folder into the paket-files folder.

It correctly fetches the repository from a remote github based repo into C:\Users\Firstname Lastname.paket\git\db\folder

Repro steps

Please provide the steps required to reproduce the problem

  1. Create a User with a Space in their User name, this will create a User folder that contains a space

  2. Add git dependency in paket.dependencies

git git@github.com:MyOrganisation/MyRepo.git master build: "powershell build.ps1"

  1. run packet.exe install

Expected behavior

Dependency should be installed in packet-files

Actual behavior

Paket failed with:
Checkout to C:\Working\MySolution\MyProject\paket-files\github.com\MyOrganisation\MyRepo failed.
Message: Could not run "git clone file:///C:\Users\Firstname Lastname.paket\git\db\MyRepo".
Error:
Cloning into 'Lastname.paket\git\db\MyRepo'...
fatal: 'C:/Users/Firstname' does not appear to be a git repository
fatal: Could not read from remote repository.

Known workarounds

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions