mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-27 11:36:48 +03:00
Restoring something from previous commit
I was having issues with this line, but did not mean to drop the context.
This commit is contained in:
parent
fac9bff162
commit
e9d4dc664c
@ -2563,7 +2563,9 @@ fn tree_to_entry_list(
|
||||
let blob = object.as_blob().context("failed to get blob")?;
|
||||
// convert content to string
|
||||
let octal_mode = format!("{:o}", entry.filemode());
|
||||
if let Ok(content) = std::str::from_utf8(blob.content()) {
|
||||
if let Ok(content) =
|
||||
std::str::from_utf8(blob.content()).context("failed to convert content to string")
|
||||
{
|
||||
file_list.push((
|
||||
path.to_string(),
|
||||
octal_mode,
|
||||
|
Loading…
Reference in New Issue
Block a user