From ddc14fe1f8ad933d82fcffcf1e1e32a5b4cfbc72 Mon Sep 17 00:00:00 2001 From: Michal Date: Fri, 29 Jul 2022 09:58:56 +0100 Subject: [PATCH] Fixed current dir --- src/operations/pull.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/operations/pull.rs b/src/operations/pull.rs index 184697b..6314ba5 100644 --- a/src/operations/pull.rs +++ b/src/operations/pull.rs @@ -87,6 +87,14 @@ fn do_the_pulling(repos: Vec, verbose: bool, params: &PullParams) { // Push to build crate::operations::build(&packages_to_rebuild, vec![], params.no_regen, verbose); + + // Ensure you are in root dir + env::set_current_dir(root_dir).unwrap(); + log!( + verbose, + "Returned to root dir: {:?}", + env::current_dir().unwrap() + ); } } }