Skip to content

Simultaneous gc and repack

Summary

The bug is described here:

https://public-inbox.org/git/1492104698.1527.79.camel@novalis.org/

Basically we should not allow for now a git gc to run at the same time as a git repack.

Steps to reproduce

I haven't tested this, but running a git gc and a git repack simultaneously should result in the gc dying with:

"fatal: ./objects/pack/pack-$sha.pack cannot be accessed"

What is the current bug behavior?

The gc and the repack are allowed to run at the same time.

What is the expected correct behavior?

The gc and the repack should be prevented to run at the same time.

Relevant logs and/or screenshots

See https://public-inbox.org/git/1492104698.1527.79.camel@novalis.org/

/cc @jacobvosmaer-gitlab