use std::path::Path;
use crate::git::cli;
pub async fn reset_repo(repo_path: &str) -> bool {
if cli::set_safe_directory().await.is_err() {
return false;
}
if cli::reset_hard(repo_path).await.is_err() {
return false;
}
if super::fs::remove_symlinks(Path::new(repo_path)).is_err() {
return false;
}
true
}