Skip to content

Commit

Permalink
fix: ftl new fails (#2326)
Browse files Browse the repository at this point in the history
The directory was being prefixed to the path twice.

fixes #2297
  • Loading branch information
stuartwdouglas authored Aug 12, 2024
1 parent 5b042bd commit 001a3d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ftl/cmd_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
Expand Down

0 comments on commit 001a3d2

Please sign in to comment.