History

adjustments for breaking changes in `git-config` (#331)

Sebastian Thiel committed 4 years ago

Commit d3841ee1 parent 9cadc6f2 files · +2 −2Browse files

Unified · Split

2 files
  1. git-repository/src/config.rs +1 −1
  2. git-repository/src/lib.rs +1 −1
git-repository/src/config.rs+1−1
@@ -101,7 +101,7 @@ mod cache { · 100 unmodified lines
101 }101 }
102 if hex_len_str.as_ref() != "auto" {102 if hex_len_str.as_ref() != "auto" {
103 let value_bytes = hex_len_str.as_ref();103 let value_bytes = hex_len_str.as_ref();
104 if let Ok(Boolean::False(_)) = Boolean::try_from(value_bytes) {104 if let Ok(false) = Boolean::try_from(value_bytes).map(Into::into) {
105 hex_len = object_hash.len_in_hex().into();105 hex_len = object_hash.len_in_hex().into();
106 } else {106 } else {
107 let value = Integer::try_from(value_bytes)107 let value = Integer::try_from(value_bytes)
git-repository/src/lib.rs+1−1
@@ -445,7 +445,7 @@ pub mod discover { · 444 unmodified lines
445 .and_then(|v| Vec::from_os_string(v).ok().map(BString::from))445 .and_then(|v| Vec::from_os_string(v).ok().map(BString::from))
446 {446 {
447 if let Ok(b) = git_config::Boolean::try_from(cross_fs) {447 if let Ok(b) = git_config::Boolean::try_from(cross_fs) {
448 opts.cross_fs = b.to_bool();448 opts.cross_fs = b.into();
449 }449 }
450 }450 }
451 opts451 opts