From bcae1076e5a8819f520d7e3a34fa8ce7df43dc26 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 25 Aug 2017 13:25:08 +0800 Subject: [PATCH] GitRepo.vala --- GitRepo.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.39.2