Merge branch 'tb/t5520-reflog-expire'
The `t5520` test script has been updated to disable reflog expiration. This prevents test flakiness caused by the auto-maintenance reflog-expire task, which would otherwise immediately expire the test's reflogs due to them carrying hardcoded timestamps from 2005. * tb/t5520-reflog-expire: t5520: don't expire reflogs where it matters
This commit is contained in:
commit
08ab14b084
1 file changed
+6
@@ -35,6 +35,12 @@ test_pull_autostash_fail () {
|
||||
}
|
||||
|
||||
test_expect_success setup '
|
||||
# Commit dates are hardcoded to 2005, and the reflog entries will have
|
||||
# a matching timestamp. Maintenance may thus immediately expire
|
||||
# reflogs if it was running.
|
||||
git config set gc.reflogExpire never &&
|
||||
git config set gc.reflogExpireUnreachable never &&
|
||||
|
||||
echo file >file &&
|
||||
git add file &&
|
||||
git commit -a -m original
|
||||
|
||||
Reference in new issue
Block a user