Scm/Git/Repo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 5 Sep 2014 03:18:22 +0000 (11:18 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 5 Sep 2014 03:18:22 +0000 (11:18 +0800)
Scm/Git/Repo.vala

index 68a46fb..a50ddff 100644 (file)
@@ -63,6 +63,11 @@ class GitRepo : Object
         // not sure if that is how git works.. but just be certian.
         for (var i = 0; i < files.length;i++) {
             var f = files.item(i);
+            
+            if (!GLib.FileUtils.test(this.repopath +"/" + f, GLib.FileTest.EXISTS)) {
+                continue;
+            }
+            printf("Checked %s - exists\n", this.repopath +"/" + f);
             try {
                 this.git( { "add",   f });
             } catch (Error e) {