Skip to content

git.exe parent process locks index file for child git.exe process #770

Closed
@hzshlomi

Description

@hzshlomi

I did see similar closed issues

Setup

MINGW64
$ git --version
git version 2.7.4.windows.1
Win7 64 bit

  • What options did you set as part of the installation? Or did you choose the
    defaults?
    pull+rebase

Details

  • Which terminal/shell are you running Git from?
    Bash (MINGW64), no other GUI tool installed
  • What commands did you run to trigger this issue? If you can provide a
    git pull
  • What did you expect to occur after running these commands?
    to be updated against remote
  • What actually happened instead?
    it triggered "Auto packing" and failed (see output message below), while the process holding the lock was .. "git.exe":
    git.exe (pid=34040; "git pull")
    -> git.exe (pid=28552; "git fetch -update-head-ok")
    -> git.exe (pid=12732; "git gc -auto")
    -> git.exe (pid=12732; "git repack -d -l -A --unpack-unreachable=2.weeks.ago")

where 34040 holds "006efeeb01a6252adb97aafb1cbb04232f915794.idx",
and 12732 fails to unlink it.

The output:
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Counting objects: 309941, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (72671/72671), done.
Writing objects: 100% (309941/309941), done.
Total 309941 (delta 186940), reused 301892 (delta 181069)
Unlink of file '.git/objects/pack/pack-006efeeb01a6252adb97aafb1cbb04232f915794.idx' failed. Should I try again? (y/n) y

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