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



commit 9ab9fab8994a54f26192a5db9a52aca1f4c90139
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 31c56f09..bcf2c990 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]