]> source.dussan.org Git - gitblit.git/commit
Workaround 1 sec resolution of File.lastModified on Linux (issue-55)
authorJames Moger <james.moger@gitblit.com>
Mon, 20 Feb 2012 17:33:57 +0000 (12:33 -0500)
committerJames Moger <james.moger@gitblit.com>
Mon, 20 Feb 2012 17:33:57 +0000 (12:33 -0500)
commit5e58f0a0ebfcf523fa1bd7cc74e3808140c75261
treea1a3b8a0d0c3d70fbba93a92d92bd1101fcbcead
parent3888724169e26c7d637e5c4c1fa82feb4d291215
Workaround 1 sec resolution of File.lastModified on Linux (issue-55)

Shockingly, File.lastModified() does not always support millisecond
resolution on all platforms even if the underlying filesystem supports
it.  Added a forceReload flag (in addition to last modified checks) to
ensure that user backends and configuration properties are properly
reloaded.
src/com/gitblit/ConfigUserService.java
src/com/gitblit/FileSettings.java
src/com/gitblit/FileUserService.java