GitMonitor.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 Nov 2018 06:09:20 +0000 (14:09 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 Nov 2018 06:09:20 +0000 (14:09 +0800)
GitMonitor.vala

index 8776fbe..e0ab9bb 100644 (file)
@@ -173,6 +173,7 @@ public class GitMonitor : Monitor
        public new void monitor (string path,  int depth = 0)
        {
                
+               GLib.debug("monitor %d %s", depth, path);
                //var depth = typeof(depth) == 'number'  ? depth *1 : 0;
                
                 
@@ -182,6 +183,8 @@ public class GitMonitor : Monitor
                }
                
                if (depth == 1) {
+                       GitRepo.singleton().get(path);
+               
                        // FIXME - check if repo is flagged as not autocommit..
                        //var repo = imports.Scm.Repo.Repo.get(path);
                        //if (!repo || !repo.autocommit()) {