]> git.ipfire.org Git - thirdparty/git.git/blobdiff - notes-merge.c
git-svn: warn instead of dying when commit data is missing
[thirdparty/git.git] / notes-merge.c
index 34bfac0c685f18c635b30dbf19d7b25250faa1c6..b7814c9b6488825a68bf8ca20de2c6420f01e26b 100644 (file)
@@ -170,7 +170,7 @@ static struct notes_merge_pair *diff_tree_remote(struct notes_merge_options *o,
                       sha1_to_hex(mp->remote));
        }
        diff_flush(&opt);
-       free_pathspec(&opt.pathspec);
+       clear_pathspec(&opt.pathspec);
 
        *num_changes = len;
        return changes;
@@ -256,7 +256,7 @@ static void diff_tree_local(struct notes_merge_options *o,
                       sha1_to_hex(mp->local));
        }
        diff_flush(&opt);
-       free_pathspec(&opt.pathspec);
+       clear_pathspec(&opt.pathspec);
 }
 
 static void check_notes_merge_worktree(struct notes_merge_options *o)