From 001a3d2544cc9b6b20e2ebfff204e070459603ac Mon Sep 17 00:00:00 2001 From: Stuart Douglas Date: Mon, 12 Aug 2024 17:40:38 +1000 Subject: [PATCH] fix: ftl new fails (#2326) The directory was being prefixed to the path twice. fixes #2297 --- cmd/ftl/cmd_new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ftl/cmd_new.go b/cmd/ftl/cmd_new.go index 7f5c2fc58c..7a93c15df6 100644 --- a/cmd/ftl/cmd_new.go +++ b/cmd/ftl/cmd_new.go @@ -79,7 +79,7 @@ func (i newGoCmd) Run(ctx context.Context) error { return err } } - if err := maybeGitAdd(ctx, i.Dir, filepath.Join(path, "*")); err != nil { + if err := maybeGitAdd(ctx, i.Dir, filepath.Join(i.Name, "*")); err != nil { return err } }