GitRepo.vala
authorAlan Knowles <alan@roojs.com>
Fri, 25 Aug 2017 05:25:08 +0000 (13:25 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 25 Aug 2017 05:25:08 +0000 (13:25 +0800)
GitRepo.vala

index 42202d3..c84bea2 100644 (file)
@@ -169,8 +169,8 @@ public class GitRepo : Object
                
                try {
                        var ret = this.git( { "check-ignore" , fname } );
-                       this.ignore_files.set(fname, ret == fname);
-                       return ret == fname;
+                       this.ignore_files.set(fname, ret.length >  0);
+                       return ret.length > 0;
                } catch (SpawnError e) {
                        this.ignore_files.set(fname, false);
                        return false;
@@ -207,6 +207,7 @@ public class GitRepo : Object
 
     }
     
+    
     /**
      * commit:
      * perform a commit.