Skip to content

Commit

Permalink
Prevent unnecessary merge requests on intermittent network shares
Browse files Browse the repository at this point in the history
* Fixes #4118
  • Loading branch information
droidmonkey committed Jan 11, 2020
1 parent 39a7ce5 commit cba8947
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/core/FileWatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ QByteArray FileWatcher::calculateChecksum()
}
return hash.result();
}
return {};
// If we fail to open the file return the last known checksum, this
// prevents unnecessary merge requests on intermittent network shares
return m_fileChecksum;
});
}

Expand Down

0 comments on commit cba8947

Please sign in to comment.