From 16843bdb78c3b7259acd4c812ae057260cf09016 Mon Sep 17 00:00:00 2001 From: kepler155c Date: Fri, 18 Jan 2019 14:25:44 -0500 Subject: [PATCH] Update git.lua --- sys/apis/git.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/apis/git.lua b/sys/apis/git.lua index 77c398c..02fa103 100644 --- a/sys/apis/git.lua +++ b/sys/apis/git.lua @@ -8,6 +8,10 @@ local TREE_URL = 'https://api.github.com/repos/%s/%s/git/trees/%s?recursive=1' local FILE_URL = 'https://raw.githubusercontent.com/%s/%s/%s/%s' local git = { } +if _G._GIT_API_KEY then + TREE_URL = TREE_URL .. '&access_token=' .. _G._GIT_API_KEY +end + local fs = _G.fs local os = _G.os