diff --git a/html/views/commit/commit.js b/html/views/commit/commit.js index b766b93..b711d43 100644 --- a/html/views/commit/commit.js +++ b/html/views/commit/commit.js @@ -5,6 +5,7 @@ var showNewFile = function(file) var contents = IndexController.unstagedChangesForFile_(file); if (!contents) { notify("Can not display changes (Binary file?)", -1); + diff.innerHTML = ""; return; }