[gitg/filter-branch-sigsev: 4/4] search_path property is not passed correctly to lambda



commit 6e3ff369159335cf307a969622480044fc15cc92
Author: Alberto Fanjul <albertofanjul gmail com>
Date:   Mon Jan 14 09:40:45 2019 +0100

    search_path property is not passed correctly to lambda

 libgitg/gitg-commit-model.vala | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libgitg/gitg-commit-model.vala b/libgitg/gitg-commit-model.vala
index 5141c95a..f2cb7391 100644
--- a/libgitg/gitg-commit-model.vala
+++ b/libgitg/gitg-commit-model.vala
@@ -420,13 +420,12 @@ namespace Gitg
                                                opts.flags |= Ggit.DiffOption.SHOW_BINARY;
                                                var diff = c.get_diff(opts, 0);
 
-                                               var search_path_copy = search_path;
                                                try {
                                                        diff.foreach(
                                                                (delta, progress) => {
                                                                        var old_file_path = 
delta.get_old_file().get_path();
                                                                        var new_file_path = 
delta.get_new_file().get_path();
-                                                                       if 
(new_file_path.contains(search_path_copy) || old_file_path.contains(search_path_copy)) {
+                                                                       if 
(new_file_path.contains(search_path) || old_file_path.contains(search_path)) {
                                                                                return -7;
                                                                        }
                                                                        return 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]