summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-03-22 09:39:45 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-03-22 09:39:45 -0700
commitfbbf46846a2b1879438f823360efde8c67743f73 (patch)
tree318dbee386744571d4c58821618413fbbfa9c286 /lib
parentfd3989e1fba704e8cece4ff68c14814d272bdc75 (diff)
downloadp5-Git-Annex-fbbf46846a2b1879438f823360efde8c67743f73.tar.gz
annex-review-unused: Always pass --force to 'git annex dropunused'
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'lib')
-rw-r--r--lib/App/annex_review_unused.pm5
1 files changed, 2 insertions, 3 deletions
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?");
}