Skip to content

Getting "Rename failed" question with commit-graph enabled and automatic git gc #2070

Closed
@t-b

Description

@t-b

Setup

  • Which version of Git for Windows are you using?

64-bit

$ git --version --build-options

git version 2.21.0.rc0.windows.1
cpu: x86_64
built from commit: 90e6f79403cde5aac607ce29510fe689a3f7455e
sizeof-long: 4
sizeof-size_t: 8
  • Which version of Windows are you running?

7 64-bit

$ cmd.exe /c ver

Microsoft Windows [Version 6.1.7601]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
$ cat /etc/install-options.txt
Editor Option: VIM
Custom Editor Path:
Path Option: Cmd
SSH Option: OpenSSH
CURL Option: OpenSSL
CRLF Option: CRLFCommitAsIs
Bash Terminal Option: ConHost
Performance Tweaks FSCache: Enabled
Use Credential Manager: Disabled
Enable Symlinks: Disabled
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

core.commitGraph = true
gc.writeCommitGraph = true

Details

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

Bash

After adding a commit and gc kicking in I get

Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Enumerating objects: 1064, done.
Counting objects: 100% (264/264), done.
Delta compression using up to 12 threads
Compressing objects: 100% (264/264), done.
Writing objects: 100% (264/264), done.
Total 264 (delta 150), reused 0 (delta 0)
Computing commit graph generation numbers: 100% (6510/6510), done.
Rename from 'E:/projekte/mies-igor/.git/objects/info/commit-graph.lock' to 'E:/projekte/mies-igor/.git/objects/info/commit-graph' failed. Should I try again? (y/n)

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