Call PathWatcher.closeAllWatchers before prepare commit file
Call PathWatcher.closeAllWatchers before prepare commit file

Otherwise, if the file is closed without being saved, when the commit
 command is called again, PathWatcher will try to commit the empty file

akonwi/git-plus,akonwi/git-plus