Skip to content

Commit

Permalink
git-clear-soft: change default yes/no option to "no" (as with git-clear)
Browse files Browse the repository at this point in the history
6d49449 changed the git-clear default option to "no" (see #583).

Make the git-clear-soft default the same - it's safer.
  • Loading branch information
richardfearn committed Nov 19, 2016
1 parent fd2de52 commit c4a9bb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/git-clear-soft
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [Y/n]: "
echo -n "Sure? - This command may delete files that cannot be recovered. Files and directories in .gitignore will be preserved [y/N]: "
read ans
if [ "$ans" != "n" ]
if [ "$ans" == "y" ]
then git clean -d -f && git reset --hard
fi

0 comments on commit c4a9bb4

Please sign in to comment.