remote-helper: Change default push option 'sync' to 'no-sync'
To support safer defaults and prevent new users accidentally pushing
sensistive repository contents, this patch changes the default
behaviour of push to no-sync from sync.
The prior behaviour can be restored with either:
-o syncfor eachgit pushyou wish to sync.- Setting the git config
push.pushOptiontosyncwith:$ git config --local push.pushOption "sync"
Checks in progress
— 0 passed, 1 pending
View logs ↗
37 files changed
+171
-65
30701cc6
→
90ab1a1b
modified CHANGELOG.md
@@ -20,6 +20,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-amend.md
@@ -20,7 +20,7 @@ $ git commit --amend -m "Neue Änderungen" --allow-empty -q
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-canonical-annotated-tags.md
@@ -96,7 +96,7 @@ tag
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -139,7 +139,7 @@ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential s
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -179,7 +179,7 @@ ac51a0746a5e8311829bc481202909a1e3acc0c2
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -206,7 +206,7 @@ $ git tag v2.0 bob/tags/v2.0
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -223,7 +223,7 @@ reference is created:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-canonical-lightweight-tags.md
@@ -94,7 +94,7 @@ $ git tag v1.0-hotfix
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -137,7 +137,7 @@ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential s
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -170,7 +170,7 @@ no quorum was found for the new tag:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -197,7 +197,7 @@ $ git tag v2.0 bob/tags/v2.0
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -214,7 +214,7 @@ reference is created:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-converge.md
@@ -93,7 +93,7 @@ She can then force push to update the canonical head to the new agreed upon
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -118,7 +118,7 @@ that Alice, Bob, and Eve all have this commit as part of their history it has
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -139,7 +139,7 @@ HEAD is now at 0f9bd80 Merge remote-tracking branch 'eve/master'
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-delete.md
@@ -9,6 +9,8 @@ f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354 refs/heads/master
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -24,12 +26,16 @@ $ git checkout alice/2
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-diverge.md
@@ -19,7 +19,7 @@ $ rad inspect --delegates
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -42,7 +42,7 @@ If we try to push now, we get an error with a hint, telling us that we need to
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -63,6 +63,8 @@ f2de534 Second commit
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -76,6 +78,8 @@ $ git reset --hard HEAD^ -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-force-with-lease.md
@@ -18,6 +18,8 @@ the last time you pushed.
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -29,6 +31,8 @@ value, to `--force-push-lease`:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -39,6 +43,8 @@ As well as the named reference, and its expected value:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -75,6 +81,8 @@ So, let's create a new branch:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push-rollback.md
@@ -16,7 +16,7 @@ Fetching rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji from the network, found 1 potential s
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -34,7 +34,7 @@ Fast-forward
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -53,7 +53,7 @@ Since the canonical head is still decidable from this commit she is allowed to
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-push.md
@@ -6,6 +6,8 @@ $ git commit -m "Alice's commit" --allow-empty -s
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/git/git-tag.md
@@ -11,7 +11,7 @@ $ git tag v1.0 -a -m "Release v1.0"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -63,7 +63,7 @@ Updated tag 'v1.0' (was be18ed6)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-id-threshold.md
@@ -65,6 +65,8 @@ $ git commit -v -m "Define power requirements"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -87,6 +89,8 @@ $ git commit -v -m "Add README file"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-inbox.md
@@ -9,11 +9,11 @@ $ cd heartwood
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-merge-after-update.md
@@ -5,6 +5,8 @@ $ git checkout -b feature/1 -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -17,6 +19,8 @@ $ git checkout master -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -29,6 +33,8 @@ $ git checkout feature/1 -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-merge-no-ff.md
@@ -5,6 +5,8 @@ $ git checkout -b feature/1 -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -38,6 +40,8 @@ Finally, we push master and expect the patch to be merged.
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-merge-via-push.md
@@ -8,6 +8,8 @@ $ git commit --allow-empty -m "First change"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -19,6 +21,8 @@ $ git commit --allow-empty -m "Second change"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -71,6 +75,8 @@ $ git push rad master
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -151,6 +157,8 @@ $ git reset --hard HEAD^
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-change-base.md
@@ -15,10 +15,14 @@ $ git commit -v -m "Define power requirements"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -36,6 +40,8 @@ $ git commit --message "Add README, just for the fun"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-checkout-force.md
@@ -12,7 +12,7 @@ $ git commit -v -m "Define power requirements"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,7 +45,7 @@ $ git commit --message "Add README, just for the fun"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-checkout.md
@@ -23,6 +23,8 @@ Once the code is ready, we open (or create) a patch with our changes for the pro
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -64,6 +66,8 @@ To compare against your previous revision aa45913, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-delete.md
@@ -9,7 +9,7 @@ $ git commit -m "Introduce license"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -68,7 +68,7 @@ $ git commit -am "Add MIT License"
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-detached-head.md
@@ -29,7 +29,7 @@ Now, we can create a commit on top of this and create a patch, as usual:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-draft.md
@@ -10,6 +10,8 @@ To open a patch in draft mode, we use the `--draft` option:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-edit.md
@@ -17,6 +17,8 @@ $ git commit --message "Add README, just for the fun"
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -37,6 +39,8 @@ To compare against your previous revision 89f7afb, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-fetch-1.md
@@ -7,7 +7,7 @@ $ git checkout -b alice/1 -q
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-merge-draft.md
@@ -5,6 +5,8 @@ $ git checkout -b feature/1 -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -15,6 +17,8 @@ $ git merge feature/1
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-open-explore.md
@@ -3,7 +3,7 @@ When preferred seeds are configured, opening a patch outputs the patch URL.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -17,7 +17,7 @@ If we update the patch, the URL is also output.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -36,7 +36,7 @@ While simply pushing a commit outputs a URL to the new source tree.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-pull-update.md
@@ -42,7 +42,7 @@ our fork:
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -53,7 +53,7 @@ Bob then opens a patch.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -82,7 +82,7 @@ Bob then updates the patch.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-revert-merge.md
@@ -5,6 +5,8 @@ $ git checkout -b feature/1 -q
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -13,6 +15,8 @@ $ git merge feature/1
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -52,6 +56,8 @@ When pushing, notice that we're told our patch is reverted.
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-update.md
@@ -7,6 +7,8 @@ $ git commit -q -m "Not a real change" --allow-empty
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch-via-push.md
@@ -9,9 +9,9 @@ Switched to a new branch 'feature/1'
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -81,6 +81,8 @@ $ git checkout -b feature/2 -q master
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -119,6 +121,8 @@ To compare against your previous revision 9580891, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -199,7 +203,7 @@ error: failed to push some refs to 'rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6MknSLr
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -212,6 +216,8 @@ To compare against your previous revision d7040c6, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -273,7 +279,9 @@ HEAD is now at 831e838 Going into detached HEAD
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -291,6 +299,8 @@ To compare against your previous revision e0fd879, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -302,7 +312,9 @@ $ git checkout 831e838 -q
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -319,6 +331,8 @@ To compare against your previous revision e0fd879, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-patch.md
@@ -27,6 +27,8 @@ Once the code is ready, we open (or create) a patch with our changes for the pro
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -133,6 +135,8 @@ To compare against your previous revision aa45913, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-push-and-pull-patches.md
@@ -4,7 +4,7 @@ Testing pulling, fetching and the `FETCH_HEAD`.
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -32,7 +32,7 @@ f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -45,7 +45,7 @@ To rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji/z6MknSLrJoTcukLrE435hVNQT4JUhbvWLX4kUzqkE
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -55,7 +55,7 @@ From rad://z42hL2jL4XNk6K8oHQaSWfMgCL7ji
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/rad-watch.md
@@ -12,7 +12,7 @@ f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/workflow/4-patching-contributor.md
@@ -83,6 +83,8 @@ To compare against your previous revision e4934b6, run:
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified crates/radicle-cli/examples/workflow/5-patching-maintainer.md
@@ -91,7 +91,7 @@ Fast-forward
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -128,7 +128,7 @@ $ rad patch show e4934b6
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/main.rs
@@ -193,7 +193,7 @@ impl Branch {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -404,9 +404,9 @@ fn run_loop<R: BufRead, W: Write, G: service::GitService, N: service::NodeSessio
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/push.rs
@@ -455,21 +455,29 @@ pub(super) fn run(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
|
|
|
|
|