Closed t-b closed 5 years ago
This should have been prevented by this call:
https://github.com/git-for-windows/git/blob/v2.21.0-rc2.windows.1/commit-graph.c#L1052
Sorry, without an MCVE I cannot really dig further.
@dscho Thanks for the code pointer.
My envisoned MWE would be
#!/bin/sh
set -e
rm -rf test
mkdir test
cd test
git init
git config --local gc.auto 10
git config --local gc.writeCommitGraph 1
git config --local core.commitGraph 1
git checkout -b feature
echo "" > file.txt
git add file.txt
for i in `seq 1 100`;
do
echo $i >> file.txt
git commit --quiet -m "blah" file.txt
done
git gc
but I can't replicate it with that ATM.
I'll reopen if I can reproduce it again.
Setup
64-bit
7 64-bit
core.commitGraph = true gc.writeCommitGraph = true
Details
Bash
After adding a commit and gc kicking in I get