remote-helper: inform the user of an empty patch
The previous message is included in the error:
! [remote rejected] master -> refs/patches (patch commits are already included in the base branch)
To make it clearer to the user, also print a warning to tell them that the commit was in the base branch – including the commit SHA:
warn: attempted to create a patch using the commit f2de534b5e81d7c6e2dcaf58c3dd91573c0a0354, but this commit is already included in the base branch
2 files changed
+5
-1
28c8c153
→
0c70e171
modified crates/radicle-cli/examples/rad-patch-via-push.md
@@ -330,6 +330,7 @@ we should get an error:
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified crates/radicle-remote-helper/src/push.rs
@@ -31,7 +31,7 @@ use radicle::{git, rad};
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -556,6 +556,9 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|