Message ID | e030ddd91f365b870332467057ab054bb34aa4cd.1728460700.git.gitgitgadget@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | e4d03b79386e3bd0dba1c8096f8602490bda99d6 |
Headers | show |
Series | rebase-merges: try and use branch names for labels | expand |
diff --git a/log-tree.c b/log-tree.c index 3758e0d3b8e..c65ebd29202 100644 --- a/log-tree.c +++ b/log-tree.c @@ -232,6 +232,11 @@ void load_ref_decorations(struct decoration_filter *filter, int flags) for_each_string_list_item(item, filter->exclude_ref_config_pattern) { normalize_glob_ref(item, NULL, item->string); } + + /* normalize_glob_ref duplicates the strings */ + filter->exclude_ref_pattern->strdup_strings = 1; + filter->include_ref_pattern->strdup_strings = 1; + filter->exclude_ref_config_pattern->strdup_strings = 1; } decoration_loaded = 1; decoration_flags = flags;