Skip to content
Snippets Groups Projects
Commit 9b342d7d authored by nfontrod's avatar nfontrod
Browse files

src/clone.rs: update clone to avoid a borg init before cheking if the remote path is ok

parent 667e17d0
Branches
No related tags found
No related merge requests found
......@@ -54,7 +54,7 @@ pub fn get_borg_absolute_folder() -> PathBuf {
p
}
/// Check if the input remote dir
/// Check if the input remote dir contains archives defined in git history
fn check_remote_dir(url: &PathBuf, adress: &str) {
let archives = pull::get_archive_list(&url, &adress);
if archives.len() == 0 {
......@@ -65,6 +65,8 @@ fn check_remote_dir(url: &PathBuf, adress: &str) {
);
exit(1);
}
let git_commits = pull::get_git_commits();
pull::check_archives(&git_commits, &archives);
}
/// Create a push the tar achive on the selected remote path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment