upleb.uk

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

summaryrefslogtreecommitdiff
path: root/src/git.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/git.rs')
-rw-r--r--src/git.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/git.rs b/src/git.rs
index cd42724..113a63c 100644
--- a/src/git.rs
+++ b/src/git.rs
@@ -6,7 +6,7 @@ use anyhow::{bail, Context, Result};
6use git2::{DiffOptions, Oid, Revwalk}; 6use git2::{DiffOptions, Oid, Revwalk};
7use nostr::prelude::{sha1::Hash as Sha1Hash, Hash}; 7use nostr::prelude::{sha1::Hash as Sha1Hash, Hash};
8 8
9use crate::sub_commands::prs::list::tag_value; 9use crate::sub_commands::list::tag_value;
10 10
11pub struct Repo { 11pub struct Repo {
12 git_repo: git2::Repository, 12 git_repo: git2::Repository,
@@ -1251,7 +1251,7 @@ mod tests {
1251 mod apply_patch { 1251 mod apply_patch {
1252 1252
1253 use super::*; 1253 use super::*;
1254 use crate::{repo_ref::RepoRef, sub_commands::prs::create::generate_patch_event}; 1254 use crate::{repo_ref::RepoRef, sub_commands::send::generate_patch_event};
1255 1255
1256 fn generate_patch_from_head_commit(test_repo: &GitTestRepo) -> Result<nostr::Event> { 1256 fn generate_patch_from_head_commit(test_repo: &GitTestRepo) -> Result<nostr::Event> {
1257 let original_oid = test_repo.git_repo.head()?.peel_to_commit()?.id(); 1257 let original_oid = test_repo.git_repo.head()?.peel_to_commit()?.id();
@@ -1405,7 +1405,7 @@ mod tests {
1405 use test_utils::TEST_KEY_1_KEYS; 1405 use test_utils::TEST_KEY_1_KEYS;
1406 1406
1407 use super::*; 1407 use super::*;
1408 use crate::{repo_ref::RepoRef, sub_commands::prs::create::generate_pr_and_patch_events}; 1408 use crate::{repo_ref::RepoRef, sub_commands::send::generate_pr_and_patch_events};
1409 1409
1410 static BRANCH_NAME: &str = "add-example-feature"; 1410 static BRANCH_NAME: &str = "add-example-feature";
1411 // returns original_repo, pr_event, patch_events 1411 // returns original_repo, pr_event, patch_events