From f16febf0e8af3f4dcabfef29d7a95162a90d63c4 Mon Sep 17 00:00:00 2001 From: Pieter de Bie Date: Sun, 25 Jan 2009 15:02:17 +0000 Subject: [PATCH] WebCommit: Empty diff display if there's a binary file --- html/views/commit/commit.js | 1 + 1 file changed, 1 insertion(+) 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; }