commit: 7aa342d050e746b0944ac17a81bf7ac3a7793b11
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 24 02:47:40 2015 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Feb 24 02:47:40 2015 +0000
URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=7aa342d0
Fix arg.
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
---
ag | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ag b/ag
index 52e8848..57e178d 100755
--- a/ag
+++ b/ag
@@ -148,7 +148,7 @@ Ag::Utils.proc_count = $options.jobs
def do_full
abort "Wrong argument type: #{$options.argmode.to_s}" unless
$options.argmode == :dir
begin
- Ag::Storage.delete_index(list)
+ Ag::Storage.delete_index($options.name)
rescue Elasticsearch::Transport::Transport::Errors::NotFound => e
$stderr.puts "Index did not exist yet. Creating." if $options.debug
end