git-remote-rad: Work better with `jj`
This patch was made entirely from within a jj repository that
is not co-located in a git repository. I would not recommend
doing that though: It still requires a lot of manual configuration
and hand-holding.
The necessary changes were:
git-remote-rad: Allow pushing from bare repositories
Bare git repositories are meant to fetch into/push from and fetching works, but pushing from a bare repo into radicle-storage was prohibited.
This is a problem for me as I want to use jj, which uses
a bare git repository in the back (when not co-located into
a “normal” git repository).
git-remote-rad: Allow pushing commit SHAs into refs/patches
This makes scripting so much simpler than having to change HEAD or create a branch first.
1 file changed
+16
-5
78ba263d
→
a052e5d3
modified crates/radicle-remote-helper/src/push.rs
@@ -390,6 +390,20 @@ pub fn run(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -408,8 +422,7 @@ fn patch_open<G>(
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -826,9 +839,7 @@ fn push_ref(
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|