summaryrefslogtreecommitdiff
path: root/generate.lua
diff options
context:
space:
mode:
Diffstat (limited to 'generate.lua')
-rw-r--r--generate.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/generate.lua b/generate.lua
index 9bbfc09..a216808 100644
--- a/generate.lua
+++ b/generate.lua
@@ -6,9 +6,10 @@ Generates activity chart
<repos...> (optional string) Paths to repositories with activity
]]
local activity = require "activity"
+local git = require "activity.git"
local ok, maybe_format = pcall(require, "activity.formats." .. args.f)
if not ok then
io.stderr:write(("couldn't find specified format: %q\n"):format(args.f))
os.exit(1)
end
-io.write(activity.generate_table(args.y, args.repos, maybe_format))
+io.write(activity.generate_table(args.y, git.lookup(args.repos), maybe_format))