From e8f10b1b8b023c5e53c271665e94fb24b1cda873 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 5 Sep 2014 11:18:22 +0800 Subject: [PATCH] Scm/Git/Repo.vala --- Scm/Git/Repo.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Scm/Git/Repo.vala b/Scm/Git/Repo.vala index 68a46fbf..a50ddff2 100644 --- a/Scm/Git/Repo.vala +++ b/Scm/Git/Repo.vala @@ -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) { -- 2.39.2