diff --git a/src/init.rs b/src/init.rs index 7ac789fa2e1ad74f55e3bf9cc1c87340b0a41818..157a1bf81039b4fc0c8d7f847229178feccd216c 100644 --- a/src/init.rs +++ b/src/init.rs @@ -1,8 +1,8 @@ +use crate::create_hooks; use std::path::PathBuf; use std::process::{exit, Command}; -use crate::create_hooks; -/// Function used to get borg repository folder and results repository only if +/// Function used to get borg repository folder and results repository only if /// the project is inside a git repository pub fn get_borg_folder() -> (PathBuf, PathBuf) { let output = Command::new("git") @@ -67,7 +67,6 @@ fn init_repository() { } } - /// Creation of a borg repository and creation of hooks if needed inside `.git/hooks` /// folder /// # Arguments: @@ -79,4 +78,4 @@ pub fn init_and_hook(hooks: bool, compression: &str, mode: &str) { if hooks { create_hooks::create_hooks(compression, mode); } -} \ No newline at end of file +}