Skip to content

Git 2.21.0 Git LFS not working on a clean Windows Server 2019 installation #2140

@christianbumann

Description

@christianbumann
  • [ x] 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.21.0.windows.1
cpu: x86_64
built from commit: 2481c4cbe949856f270a3ee80c802f5dd89381aa
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
$ cmd.exe /c ver

OS Name:                   Microsoft Windows Server 2019 Standard
OS Version:                10.0.17763 N/A Build 17763
Original Install Date:     3/26/2019, 7:24:51 AM
System Manufacturer:       Microsoft Corporation
System Model:              Virtual Machine
System Type:               x64-based PC
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# 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

Editor Option: VIM
Custom Editor Path: 
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** A fresh installed Windows 2019 **

Details

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

** CMD or Bash **

**C:\repo>git version
git version 2.21.0.windows.1

C:\repo>git lfs --version
git-lfs/2.7.1 (GitHub; windows amd64; go 1.11.5; git 6b7fb6e3)

C:\repo>git lfs checkout
Cannot checkout LFS objects, Git LFS is not installed.

C:\repo>git lfs install
Updated git hooks.
Git LFS initialized.

C:\repo>git lfs checkout

Now the command will run succesfull**

  • What did you expect to occur after running these commands?

** Git should checkout the LFS files **

  • What actually happened instead?

** Message Cannot checkout LFS objects, Git LFS is not installed. appears **

  • Remarks

** After running git lfs install you can uninstall and install Git again, the issue will not be present anymore. That means you need a fresh Windows installation. I only tested it with Windows Server 2019, Windows Server 2012 R2 so I don't know its even an issue with other Windows versions (10, Server 2016). Installing Git 2.20.1 is working on a fresh installation **

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions