Skip to content

Commit 29eb8a7

Browse files
committed
Simple precedence of task-specific config over pattern config.
1 parent 7e08ce2 commit 29eb8a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/core/conf.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,8 +378,13 @@ namespace mob {
378378

379379
MOB_ASSERT(!tasks.empty());
380380

381-
for (auto& t : tasks)
381+
for (auto& t : tasks) {
382+
if (t->name() != task &&
383+
details::find_string_for_task(t->name(), key)) {
384+
continue;
385+
}
382386
details::set_string_for_task(t->name(), key, value);
387+
}
383388
}
384389
else {
385390
// global task option

0 commit comments

Comments
 (0)