summaryrefslogtreecommitdiff
path: root/bin/annex-drop-files-deleted-by-commit
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-14 16:25:09 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-12-14 16:25:09 -0700
commit81a44b8350067f3dc2b4418d44fbf82c366e7d67 (patch)
treebb1033a42fec56197f1f5418c0afe002a2a18c66 /bin/annex-drop-files-deleted-by-commit
parent0240f768a55e4918f963ffbafeddb08cec1eb806 (diff)
downloaddotfiles-81a44b8350067f3dc2b4418d44fbf82c366e7d67.tar.gz
fix @drop_args
Diffstat (limited to 'bin/annex-drop-files-deleted-by-commit')
-rwxr-xr-xbin/annex-drop-files-deleted-by-commit6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/annex-drop-files-deleted-by-commit b/bin/annex-drop-files-deleted-by-commit
index a129b8b5..91f431e9 100755
--- a/bin/annex-drop-files-deleted-by-commit
+++ b/bin/annex-drop-files-deleted-by-commit
@@ -41,9 +41,9 @@ catch {
# process command line
# TODO support --from so can drop from special remotes too
-my %drop_args = ();
+my @drop_args = ();
if ($ARGV[0] eq '--force') {
- $drop_args{force} = 1;
+ push @drop_args, "--force"
shift @ARGV;
}
@@ -59,7 +59,7 @@ for (@ARGV) {
"$commit~1..$commit");
$worktree->checkout("$commit~1");
# bypass Git::Wrapper so output goes to terminal
- system('git', '-C', $temp, 'annex', 'drop', %drop_args, @deleted_files);
+ system('git', '-C', $temp, 'annex', 'drop', @drop_args, @deleted_files);
}
# we can't use `git worktree remove` because the way git-annex
# worktree support works breaks that command: git-annex replaces the