diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-03-22 09:39:45 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-03-22 09:39:45 -0700 |
commit | fbbf46846a2b1879438f823360efde8c67743f73 (patch) | |
tree | 318dbee386744571d4c58821618413fbbfa9c286 | |
parent | fd3989e1fba704e8cece4ff68c14814d272bdc75 (diff) | |
download | p5-Git-Annex-fbbf46846a2b1879438f823360efde8c67743f73.tar.gz |
annex-review-unused: Always pass --force to 'git annex dropunused'
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | lib/App/annex_review_unused.pm | 5 |
2 files changed, 4 insertions, 3 deletions
@@ -2,6 +2,8 @@ Revision history for Git::Annex {{$NEXT}} - annex-review-unused: Add missing prompt_yn subroutine. + - annex-review-unused: Always pass --force to 'git annex dropunused'. + Previously it couldn't be passed at all, which is much less useful. 0.004 2020-03-18 17:08:57-07:00 America/Phoenix - annex-to-annex-dropunused: Fix attempt to call wrong main() diff --git a/lib/App/annex_review_unused.pm b/lib/App/annex_review_unused.pm index 340c17f..5c5e5a7 100644 --- a/lib/App/annex_review_unused.pm +++ b/lib/App/annex_review_unused.pm @@ -170,10 +170,9 @@ sub main { } if (@to_drop) { - _say_spaced_bullet("Will dropunused" - . (exists $dropunused_args{force} ? " with --force:" : ":")); + _say_spaced_bullet("Will dropunused with --force:"); say "@to_drop\n"; - $annex->annex->dropunused(\%dropunused_args, @to_drop) + $annex->annex->dropunused(\%dropunused_args, "--force", @to_drop) if prompt_yn("Go ahead with this?"); } |