Skip to content

fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to '..../.git/logs/HEAD': Invalid argument #2753

@cheshirecatnyc

Description

@cheshirecatnyc

Our network filesystem just switched over from attached storage to CIFS using an equallogic array.
Using most current release 2.27.1 64-bit. Once we switched filesystems, started getting an error with commit and clone.

W:....>git clone https://[email protected]/myproject/sample.git
Cloning into 'sample'...
remote: Counting objects: 16, done.
remote: Compressing objects: 100% (14/14), done.
remote: Total 16 (delta 1), reused 0 (delta 0)
Unpacking objects: 100% (16/16), done.
error: unable to append to 'W:..../sample/.git/logs/refs/remotes/origin/HEAD': Invalid argument
fatal: update_ref failed for ref 'HEAD': cannot update the ref 'HEAD': unable to append to 'W:.../sample/.git/logs/HEAD': Invalid argument

Same problem with commit.

I can successfully clone/commit from either my local PC c: drive and also from an attached storage network drive.

A colleague is still successfully using 2.17.1.windows.2. I started backtracking - the problem occurs in 2.19.1, but seems to work ok with 2.18.0, so maybe something happened in between those two?

I was looking at this previous issue #1345, and it seems similar, but I don't know the history of this chunk of code and if something changed between 2.18.0 and 2.19.1

Let me know what other info you need.

Setup

git --version --build-options
git version 2.27.0.windows.1
cpu: x86_64
built from commit: 907ab10
sizeof-long: 4
sizeof-size_t: 8

Windows 10 64-bit

>cmd.exe /c ver

Microsoft Windows [Version 10.0.14393]


>type "C:\Program Files\Git\etc\install-options.txt"
Editor Option: Notepad++
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions