From: Alan Knowles Date: Fri, 25 Aug 2017 05:25:08 +0000 (+0800) Subject: GitRepo.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=bcae1076e5a8819f520d7e3a34fa8ce7df43dc26 GitRepo.vala --- diff --git a/GitRepo.vala b/GitRepo.vala index 42202d35..c84bea27 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -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.