upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/sub_commands/login.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-07-31 15:59:17 +0100
committerDanConwayDev <DanConwayDev@protonmail.com>2024-07-31 15:59:17 +0100
commit3acdeabfc3ab55d3e92d76d92d8ab6ad0383dd09 (patch)
treeb5abbca08ec004d31569db9166c37166c39baef2 /src/sub_commands/login.rs
parent46116e561fb62ad939c53e937461f2346022565d (diff)
feat(remote): `push` issues state event
if no previous state events can be found it replicates git server otherwise it just updates pushed value
Diffstat (limited to 'src/sub_commands/login.rs')
-rw-r--r--src/sub_commands/login.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sub_commands/login.rs b/src/sub_commands/login.rs
index 77fecdd..8a3788f 100644
--- a/src/sub_commands/login.rs
+++ b/src/sub_commands/login.rs
@@ -25,6 +25,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> {
25 &args.password, 25 &args.password,
26 None, 26 None,
27 true, 27 true,
28 false,
28 ) 29 )
29 .await?; 30 .await?;
30 Ok(()) 31 Ok(())
@@ -42,6 +43,7 @@ pub async fn launch(args: &Cli, command_args: &SubCommandArgs) -> Result<()> {
42 &args.password, 43 &args.password,
43 Some(&client), 44 Some(&client),
44 true, 45 true,
46 false,
45 ) 47 )
46 .await?; 48 .await?;
47 client.disconnect().await?; 49 client.disconnect().await?;