Skip to content
Snippets Groups Projects
Commit 95df1235 authored by Jonathan Sternberg's avatar Jonathan Sternberg
Browse files

Use rm -f when removing a git repo.

Git repos place the files as write-protected by default, so the
vcsh delete operation requires the user to typo 'y' repeatedly as the
repo is deleted. Using -f removes the repository properly.
parent e71ab905
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ To continue, type 'Yes, do as I say'"
for file in $files; do
rm -f $file || info "could not delete '$file', continuing with deletion"
done
rm -r "$GIT_DIR" || error "could not delete '$GIT_DIR'"
rm -rf "$GIT_DIR" || error "could not delete '$GIT_DIR'"
}
enter() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment