diff options
Diffstat (limited to 'crates/shirabe/src/repository/path_repository.rs')
| -rw-r--r-- | crates/shirabe/src/repository/path_repository.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/shirabe/src/repository/path_repository.rs b/crates/shirabe/src/repository/path_repository.rs index 05b68382..d619865b 100644 --- a/crates/shirabe/src/repository/path_repository.rs +++ b/crates/shirabe/src/repository/path_repository.rs @@ -256,16 +256,16 @@ impl PathRepository { { let mut ref1 = PhpMixed::Null; let mut ref2 = PhpMixed::Null; - let cmd = PhpMixed::from(vec!["git", "rev-parse", "HEAD"]); + let cmd = ["git", "rev-parse", "HEAD"]; let code1 = self .process .borrow_mut() - .execute(cmd.clone(), &mut ref1, Some(path.as_str())) + .execute(&cmd, &mut ref1, Some(path.as_str())) .unwrap_or(1); let code2 = self .process .borrow_mut() - .execute(cmd, &mut ref2, None) + .execute(&cmd, &mut ref2, None) .unwrap_or(1); if code1 == 0 && code2 == 0 && ref1.as_string() == ref2.as_string() { package.insert( @@ -292,7 +292,7 @@ impl PathRepository { && self .process .borrow_mut() - .execute(PhpMixed::from(command), &mut output, Some(path.as_str())) + .execute(command, &mut output, Some(path.as_str())) .unwrap_or(1) == 0 { |
