| | @@ -672,12 +672,12 @@ |
| 672 | 672 | ** that were removed will be removed as well. |
| 673 | 673 | ** -f|--force Remove directories without prompting. |
| 674 | 674 | ** -x|--verily Remove everything that is not a managed file or |
| 675 | 675 | ** the repository itself. Implies -f --emptydirs |
| 676 | 676 | ** --dotfiles. Disregard keep-glob and ignore-glob, |
| 677 | | -** except that files matching ignore-glob are not |
| 678 | | -** never undo-able. |
| 677 | +** except that files matching ignore-glob are never |
| 678 | +** undo-able. |
| 679 | 679 | ** --clean <CSG> Never prompt for files matching this |
| 680 | 680 | ** comma separated list of glob patterns. |
| 681 | 681 | ** --ignore <CSG> Ignore files matching patterns from the |
| 682 | 682 | ** comma separated list of glob patterns. |
| 683 | 683 | ** --keep <CSG> Keep files matching this comma separated |
| | @@ -772,16 +772,16 @@ |
| 772 | 772 | if( !dryRunFlag && !glob_match(pClean, zName+nRoot) |
| 773 | 773 | && !(verilyFlag && glob_match(pIgnore, zName+nRoot)) |
| 774 | 774 | && undo_save(zName+nRoot, 10*1024*1024) ){ |
| 775 | 775 | prompt = mprintf("file \"%s\" too big. Deletion will not be " |
| 776 | 776 | "undo-able. Continue (y/N)? ", zName+nRoot); |
| 777 | | - blob_zero(&ans); |
| 778 | 777 | prompt_user(prompt, &ans); |
| 779 | 778 | cReply = blob_str(&ans)[0]; |
| 780 | 779 | if( cReply!='y' && cReply!='Y' ){ |
| 781 | 780 | fossil_fatal("Clean aborted"); |
| 782 | 781 | } |
| 782 | + blob_reset(&ans); |
| 783 | 783 | } |
| 784 | 784 | if( dryRunFlag || file_delete(zName)==0 ){ |
| 785 | 785 | if( verboseFlag || dryRunFlag ){ |
| 786 | 786 | fossil_print("Removed unmanaged file: %s\n", zName+nRoot); |
| 787 | 787 | } |
| 788 | 788 | |