Skip to content

Commit

Permalink
fix: ftl new fails
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 committed Aug 12, 2024
1 parent b59eba3 commit 1debd3e
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 1debd3e

Please sign in to comment.