gitlive.js
authorAlan Knowles <alan@wideboy.(none)>
Wed, 28 Apr 2010 14:59:32 +0000 (22:59 +0800)
committerAlan Knowles <alan@wideboy.(none)>
Wed, 28 Apr 2010 14:59:32 +0000 (22:59 +0800)
gitlive.js

index 5eed94b..e7a64de 100644 (file)
@@ -85,7 +85,7 @@ var monitor = new Monitor({
                     failure.push(sp.args.join(' '));
                     failure.push(sp.output);
                     failure.push(sp.stderr);
-                    
+                    break;
                }
             
             
@@ -94,15 +94,17 @@ var monitor = new Monitor({
             }
             
         }
+        if (success.length) {
         
-        var notification = new Notify.Notification({
-            summary: "Git Live",
-            body : gitlive + "\nMonitoring " + this.monitors.length + " Directories"
-        });
+            var notification = new Notify.Notification({
+                summary: "Git Live Commited",
+                body : success.join("\n")
+                
+            });
 
-        notification.set_timeout(500);
-        notification.show();   
-        
+            notification.set_timeout(500);
+            notification.show();   
+        }
     }
     
     shouldIgnore: function(f)