Merge pull request #600 from richardfearn/git-fresh-branch-fix

git-fresh-branch: fix handling of 'yes' response when there are changes
This commit is contained in:
罗泽轩 2016-11-20 01:25:30 +08:00 committed by GitHub
commit fd2de52949

View file

@ -16,7 +16,7 @@ clean()
if [ ! -z "$changes" ]; then
read -p "All untracked changes will be lost. Continue [y/N]? " res
case $res in
[Yy]* ) clean; break;;
[Yy]* ) ;;
* ) exit 0;;
esac
fi