summaryrefslogtreecommitdiff
path: root/src/run.rs
diff options
context:
space:
mode:
authorwznmickey <first@wznmickey.com>2024-03-28 00:11:19 +0800
committerwznmickey <first@wznmickey.com>2024-03-28 00:11:19 +0800
commitdd72429af49afbfbf0c1f59f053ecc4382d074fc (patch)
tree81cc6a54f23a6f5c8a2ca4ae221efda0910c64a4 /src/run.rs
parent92183a74c4c7b91459c1371bb7a68b5e4c1c23bd (diff)
parent34d04139cd372edc0dc611ad83e056d7c4b61a73 (diff)
Merge remote-tracking branch 'origin/main'
Diffstat (limited to 'src/run.rs')
-rw-r--r--src/run.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/run.rs b/src/run.rs
index e0ada4c..6dd0388 100644
--- a/src/run.rs
+++ b/src/run.rs
@@ -21,7 +21,8 @@ pub fn run(exercise: &Exercise, verbose: bool) -> Result<(), ()> {
// Resets the exercise by stashing the changes.
pub fn reset(exercise: &Exercise) -> Result<(), ()> {
let command = Command::new("git")
- .args(["stash", "--"])
+ .arg("stash")
+ .arg("--")
.arg(&exercise.path)
.spawn();