Unverified Commit f953cad1 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

gitu: 0.40.0 -> 0.41.0 (#504799)

parents 942d1c86 60e3da3b
Loading
Loading
Loading
Loading
+4 −8
Original line number Diff line number Diff line
@@ -11,20 +11,16 @@

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "gitu";
  version = "0.40.0";
  version = "0.41.0";

  src = fetchFromGitHub {
    owner = "altsem";
    repo = "gitu";
    rev = "v${finalAttrs.version}";
    hash = "sha256-JNa9foW5z0NrXk5r/Oep20+u7YRhkzMIZQPHlZVifGI=";
    tag = "v${finalAttrs.version}";
    hash = "sha256-Q1U9a9GZJcpAF6VDqBGZW4eBW/5P6uz+C+/2+/vjqTM=";
  };

  patches = [
    ./unit-tests-compile.patch
  ];

  cargoHash = "sha256-mQ5xXYVmadmNx57nnJGICZ2dhll+V3PkYK+hwTTfdVE=";
  cargoHash = "sha256-RP8n3RZzWA0AYhsRnblmzefRsT6+Qje2ah7eFYk69ow=";

  nativeBuildInputs = [
    pkg-config
+0 −31
Original line number Diff line number Diff line
diff --git i/src/git/parse/status/mod.rs w/src/git/parse/status/mod.rs
index 5595ca1..8929d79 100644
--- i/src/git/parse/status/mod.rs
+++ w/src/git/parse/status/mod.rs
@@ -703,10 +703,12 @@ R  old.rs -> new.rs
             for c2 in &status_chars {
                 input.push(*c1);
                 input.push(*c2);
+                let c1_str = c1.to_string();
+                let c2_str = c2.to_string();
                 input.push_str(&format!(
                     " file_{}_{}.txt\n",
-                    if *c1 == ' ' { "space" } else { &c1.to_string() },
-                    if *c2 == ' ' { "space" } else { &c2.to_string() }
+                    if *c1 == ' ' { "space" } else { &c1_str },
+                    if *c2 == ' ' { "space" } else { &c2_str }
                 ));
                 count += 1;
             }
diff --git i/src/tests/remote.rs w/src/tests/remote.rs
index 7a81a50..0ac14f5 100644
--- i/src/tests/remote.rs
+++ w/src/tests/remote.rs
@@ -1,6 +1,6 @@
 use git2::{Buf, Error, Repository};
 
-use crate::{git::remote::*, repo_setup_clone, setup_clone, tests::helpers::RepoTestContext};
+use crate::{git::remote::*, repo_setup_clone, tests::helpers::RepoTestContext};
 
 use super::*;