upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/bin/ngit/sub_commands/sync.rs
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2026-02-25 16:46:02 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2026-02-26 15:26:14 +0000
commit5c305e922e19e4ac65c6a1473be67145a1c73f2b (patch)
treefb03feb94b324297df4b3560af379c6c89b1ed6e /src/bin/ngit/sub_commands/sync.rs
parent3017faf6d346fa9328c5979c6e9c6bc471bd3942 (diff)
feat: forward unrecognised push options to git servers
Any -o option passed to `git push` that is not handled by ngit (title, description) is forwarded verbatim to the git server via git2::PushOptions::remote_push_options. This allows options such as `-o secret-scanning.skip` to pass through transparently. `ngit send` gains a matching -o / --push-option flag for the same purpose.
Diffstat (limited to 'src/bin/ngit/sub_commands/sync.rs')
-rw-r--r--src/bin/ngit/sub_commands/sync.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/ngit/sub_commands/sync.rs b/src/bin/ngit/sub_commands/sync.rs
index daebb1b..b377ab4 100644
--- a/src/bin/ngit/sub_commands/sync.rs
+++ b/src/bin/ngit/sub_commands/sync.rs
@@ -187,6 +187,7 @@ pub async fn launch(args: &SubCommandArgs) -> Result<()> {
187 &refspecs, 187 &refspecs,
188 &term, 188 &term,
189 *is_grasp_server || is_grasp_server_clone_url(url), 189 *is_grasp_server || is_grasp_server_clone_url(url),
190 &[],
190 ) { 191 ) {
191 Err(error) => { 192 Err(error) => {
192 term.write_line(&format!( 193 term.write_line(&format!(