Skip to main content

reset_repo

Function reset_repo 

Source
pub async fn reset_repo(repo_path: &Path) -> Result<bool>
Expand description

Runs git reset --hard and removes the symlinks. Ok(false) when git fails or repo_path is not the root of a repository; Err when a symlink cannot be removed.