summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.lfs.server/src/org
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2019-08-11 02:43:02 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2019-08-16 16:51:45 +0200
commit7f92a70fb3a5b7e91e5d370098fa65f6c8f35efa (patch)
tree7f1c63551671bd8f3d178baea4e9c2618cd68c00 /org.eclipse.jgit.lfs.server/src/org
parentfed2a8a4f9b905b6d11f90bf25f023d4ca736365 (diff)
downloadjgit-7f92a70fb3a5b7e91e5d370098fa65f6c8f35efa.tar.gz
jgit-7f92a70fb3a5b7e91e5d370098fa65f6c8f35efa.zip
Avoid setup and saving FileStoreAttributes compete for ~/.gitconfig lock
FS determines FileStore attributes in a background thread and tries to save the results to the global git configuration. This competed with LocalDiskRepositoryTestCase#setup trying to save changes to the same file requiring the same lock. This frequently led to one of the threads failing to acquire the lock. Fix this by first initiating determination of FileStore attributes which then uses a MockSystemReader not using a userConfig stored to disk which avoids this race for the lock. Change-Id: I30fcd96bc15100f8ef9b2a9eb3320bb5ace97c67 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.lfs.server/src/org')
0 files changed, 0 insertions, 0 deletions