From 97c8164bc81e0a438dab92d7244485005dac4ff2 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Mon, 14 Sep 2026 23:45:23 +0200 Subject: literal braces are text, not placeholders, for containment and walk exclusion --- internal/engine/match.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/engine/match.go') diff --git a/internal/engine/match.go b/internal/engine/match.go index 0e8b3d5..9f5ff12 100644 --- a/internal/engine/match.go +++ b/internal/engine/match.go @@ -501,9 +501,8 @@ func (e *Engine) excludeDirs(d *Dir) []string { if a.Kind != config.Copy && a.Kind != config.Move { continue } - prefix := a.Arg - if idx := strings.IndexByte(prefix, '{'); idx >= 0 { - prefix = prefix[:idx] + prefix, templated := plan.StaticPrefix(a.Arg) + if templated { if idx2 := strings.LastIndexByte(prefix, '/'); idx2 >= 0 { prefix = prefix[:idx2] } else { -- cgit v1.3