diff options
Diffstat (limited to 'src/sub_commands/init.rs')
| -rw-r--r-- | src/sub_commands/init.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sub_commands/init.rs b/src/sub_commands/init.rs index 44e288f..e46bf74 100644 --- a/src/sub_commands/init.rs +++ b/src/sub_commands/init.rs | |||
| @@ -52,6 +52,7 @@ pub struct SubCommandArgs { | |||
| 52 | #[allow(clippy::too_many_lines)] | 52 | #[allow(clippy::too_many_lines)] |
| 53 | pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | 53 | pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { |
| 54 | let git_repo = Repo::discover().context("cannot find a git repository")?; | 54 | let git_repo = Repo::discover().context("cannot find a git repository")?; |
| 55 | let git_repo_path = git_repo.get_path()?; | ||
| 55 | 56 | ||
| 56 | let root_commit = git_repo | 57 | let root_commit = git_repo |
| 57 | .get_root_commit() | 58 | .get_root_commit() |
| @@ -313,6 +314,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 313 | 314 | ||
| 314 | send_events( | 315 | send_events( |
| 315 | &client, | 316 | &client, |
| 317 | git_repo_path, | ||
| 316 | vec![repo_event], | 318 | vec![repo_event], |
| 317 | user_ref.relays.write(), | 319 | user_ref.relays.write(), |
| 318 | relays.clone(), | 320 | relays.clone(), |