upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/sub_commands/push.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/push.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/push.rs')
-rw-r--r--src/sub_commands/push.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sub_commands/push.rs b/src/sub_commands/push.rs
index 56927fe..7a82c7a 100644
--- a/src/sub_commands/push.rs
+++ b/src/sub_commands/push.rs
@@ -178,6 +178,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
178 &cli_args.password, 178 &cli_args.password,
179 Some(&client), 179 Some(&client),
180 false, 180 false,
181 false,
181 ) 182 )
182 .await?; 183 .await?;
183 184
@@ -212,6 +213,7 @@ pub async fn launch(cli_args: &Cli, args: &SubCommandArgs) -> Result<()> {
212 user_ref.relays.write(), 213 user_ref.relays.write(),
213 repo_ref.relays.clone(), 214 repo_ref.relays.clone(),
214 !cli_args.disable_cli_spinners, 215 !cli_args.disable_cli_spinners,
216 false,
215 ) 217 )
216 .await?; 218 .await?;
217 219