upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanConwayDev <DanConwayDev@protonmail.com>2024-02-20 08:55:47 +0000
committerDanConwayDev <DanConwayDev@protonmail.com>2024-02-20 08:55:47 +0000
commit33b01ba13149e8c893ec7a1877d9578c8c403a4f (patch)
treea2e114270f4ff317d1fb29016a04b93024935e29
parent59e3b9cec5fa8cec400301ebaa18d5900166afbf (diff)
refactor: imrpove error msg
when trying to create a branch from a proposal when the the parent commit id doesnt exist
-rw-r--r--src/git.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/git.rs b/src/git.rs
index faeb9f9..63bce20 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -372,7 +372,7 @@ impl RepoActions for Repo {
372 if let Ok(last_patch) = patches_to_apply.last().context("no patches") { 372 if let Ok(last_patch) = patches_to_apply.last().context("no patches") {
373 last_patch 373 last_patch
374 } else { 374 } else {
375 self.checkout(branch_name).context("latest commit in proposal doesnt connect with an existing commit. Try a git pull on master first.")?; 375 self.checkout(branch_name).context("the parent commit of the proposal doesnt exist in your local repoistory. Try a git pull on master first.")?;
376 return Ok(vec![]); 376 return Ok(vec![]);
377 }, 377 },
378 "parent-commit", 378 "parent-commit",