From 1858205aff8cd7cc48f9fee1fb12bea1047baa68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xe=CC=81fir=20Destiny?= Date: Thu, 17 Oct 2013 10:03:29 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9tection=20du=20fast-forward?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 2eef276..4abee7e 100644 --- a/js/app.js +++ b/js/app.js @@ -27,7 +27,7 @@ function callRequest(action, section, message) { var splitLabel = xhr.responseText.split("\n").reverse(); label.classList.remove('label-warning'); - if (splitLabel[1] !== 'nothing to commit (working directory clean)') { + if (splitLabel[1] !== 'nothing to commit (working directory clean)' || xhr.responseText.match(/by [0-9]* commits/)) { label.classList.add('label-important'); label.innerHTML = 'Update needed'; } else {