maintenance: core.commitGraph=false prevents writes
commitd334107c5da27e5212e21e77da03e938ea6db976
authorDerrick Stolee <dstolee@microsoft.com>
Mon, 12 Oct 2020 13:28:34 +0000 (12 13:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Oct 2020 19:13:21 +0000 (12 12:13 -0700)
tree8774649784216bb94515ff81d7eaa232ee28a224
parent8f801804befa12a9c4ddff91275cf03612f1895d
maintenance: core.commitGraph=false prevents writes

Recently, a user had an issue due to combining
fetch.writeCommitGraph=true with core.commitGraph=false. The root bug
has been resolved by preventing commit-graph writes when
core.commitGraph is disabled. This happens inside the 'git commit-graph
write' command, but we can be more aware of this situation and prevent
that process from ever starting in the 'commit-graph' maintenance task.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/gc.c
t/t7900-maintenance.sh