diff --git a/cmd/ftl/cmd_new.go b/cmd/ftl/cmd_new.go index 7f5c2fc58..7a93c15df 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 } }