Skip to content

Install fails when previous installation drive is missing #1074

Closed
@kc22033

Description

@kc22033
  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64-bit
$ git --version --build-options

git version 2.12.0.windows.1
built from commit: d4baef1cdfef9de62d43f9682a98ba57adc842e4
sizeof-long: 4
machine: x86_64

  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows 10 Pro 64-bit
$ cmd.exe /c ver

Microsoft Windows [Version 10.0.14393]
(c) 2016 Microsoft Corporation. All rights reserved.

  • What options did you set as part of the installation? Or did you choose the
    defaults?
    Defaults except include symlinks
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

Path Option: CmdTools
SSH Option: OpenSSH
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Enabled

  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

My "D:" drive had failed. I had my previous install of Git on that drive. I was trying to install to a different drive ("K:"), but was not given the opportunity to select a path (I assume my registry pointed to the previous install on the no non-existent drive).

When I assigned a new drive to "D:", I received the error "unable to remove previous version, trying to continue install" or similar during install. Install continued and was successful

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

bash

Launched the installation app (Git-2.12.0-64-bit.exe)
  • What did you expect to occur after running these commands?

Successful installation

  • What actually happened instead?

Install aborted with "invalid path" error

  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?

** insert URL here **

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