diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/sub_commands/claim.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sub_commands/claim.rs b/src/sub_commands/claim.rs index 2573267..984fab0 100644 --- a/src/sub_commands/claim.rs +++ b/src/sub_commands/claim.rs | |||
| @@ -55,7 +55,12 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> { | |||
| 55 | .input(PromptInputParms::default().with_prompt("description (Optional)"))?, | 55 | .input(PromptInputParms::default().with_prompt("description (Optional)"))?, |
| 56 | }; | 56 | }; |
| 57 | 57 | ||
| 58 | let git_server = git_repo.get_origin_url()?; | 58 | let git_server = git_repo |
| 59 | .get_origin_url() | ||
| 60 | .context( | ||
| 61 | "to claim the repository it must be available on a publically accessable git server", | ||
| 62 | ) | ||
| 63 | .context("no git remote origin configured")?; | ||
| 59 | 64 | ||
| 60 | #[cfg(not(test))] | 65 | #[cfg(not(test))] |
| 61 | let mut client = Client::default(); | 66 | let mut client = Client::default(); |