The attached patch fixes the broken detection of GIT version control. It seems so that Qt is caching the file meta data and fools the test of file emptiness. Perhaps this has changed with Qt5 and didn’t happen with Qt4… A proper solution for VCS would move doVCCommandWithOutput to VCS::doVCCommandWithOutput and use it where a temporary file for output is used. I’ll do this if such a change is allowed.
Perhaps a better fix is to disable QFileInfo caching or to call fi.refresh() every time in FileName::isFileEmpty()? Is anybody aware of other places having this kind of problem? Stephan
VCBackend-git-enabled.patch
Description: Binary data