You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/unittest
wxiaoguang e709cc76da
Make Gitea always use its internal config, ignore `/etc/gitconfig` (#33076)
In history, Gitea could use the system config `/etc/gitconfig` because
some users said that "they might put certNonceSeed in it"

Actually, we shouldn't not use it, because it also causes conflicts
(there are already some fixes like #28848)

To make the system clear, I think it's worth to introduce the breaking
change: add `GIT_CONFIG_NOSYSTEM=1` to all git commands.


## ⚠️ BREAKING ⚠️

 For most users, nothing need to do.

If you have made changes to `/etc/gitconfig` to affect Gitea's behavior,
you need to move these config options to Gitea's internal git config
file, it is usually in Gitea's `{AppDataPath}/home/.git` directory.
1 month ago
..
consistency.go Replace assert.Fail with assert.FailNow (#27578) 1 year ago
fixtures.go Refactor fixture loading for testing (#33024) 1 month ago
fixtures_loader.go Refactor fixture loading for testing (#33024) 1 month ago
fixtures_test.go Refactor fixture loading for testing (#33024) 1 month ago
fscopy.go Fix unittest and repo create bug (#33061) 1 month ago
reflection.go Refactor tests (#33021) 1 month ago
testdb.go Make Gitea always use its internal config, ignore `/etc/gitconfig` (#33076) 1 month ago
unit_tests.go Refactor tests (#33021) 1 month ago