Eric Guo's blog.cloud-mes.com

Hoping writing JS, Ruby & Rails and Go article, but fallback to DevOps note

Fix core.fsyncObjectFiles Is Deprecated; Use core.fsync Instead in Gitlab

Permalink

After upgrade to higher version of Gitlab, when I push the repository to Gitlab, it gives warning like:

The warning when you push
remote: warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
remote: Resolving deltas: 100% (2654/2654), completed with 614 local objects.
remote: warning: core.fsyncObjectFiles is deprecated; use core.fsync instead
remote: warning: core.fsyncObjectFiles is deprecated; use core.fsync instead

More recent commit fix it, but maybe due to I upgrade from 14.6 source code installation, so the setting is not apply.

Running below command to fix it.

sudo su - git
git config -l
git config --global --unset core.fsyncObjectFiles
git config --global --add core.fsync objects,derived-metadata,reference
git config --global --add core.fsyncMethod fsync

Compare with before setting and after FYI:

Before
core.autocrlf=input
gc.auto=0
repack.writebitmaps=true
receive.advertisepushoptions=true
receive.fsckobjects=true
After
core.autocrlf=input
core.fsync=objects,derived-metadata,reference
core.fsyncmethod=fsync
gc.auto=0
repack.writebitmaps=true
receive.advertisepushoptions=true
receive.fsckobjects=true

Comments