gitlive.js
authorAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 09:35:59 +0000 (17:35 +0800)
committerAlan Knowles <alan@akbkhome.com>
Wed, 30 Mar 2011 09:35:59 +0000 (17:35 +0800)
gitlive.js

index fe6f5d2..9a84c7f 100644 (file)
@@ -278,7 +278,11 @@ var monitor = new Monitor({
             [ src.gitpath, 'commit', { all: true, message: src.vpath} ]
             
         );
-    
+        this.action_queue.push({
+            action: 'rm',
+            repo : src.repo,
+            file : src.vpath
+        });
         
     },
     onCreated : function(src) 
@@ -294,12 +298,23 @@ var monitor = new Monitor({
         }
         // director has bee created
         this.monitor(src.path);
+        
+        /*
+          since git does not really handle directory adds...
+         
         this.lastAdd = new Date();
+        this.action_queue.push({
+            action: 'add',
+            repo : src.repo,
+            file : src.vpath
+        });
+        
         this.queue.push( 
             [ src.gitpath, 'add' , src.vpath,  { all: true } ],
             [ src.gitpath, 'commit' , { all: true, message: src.vpath} ]
             
         );
+        */
         
         
     },