diff options
-rw-r--r-- | src/luarocks/fetch/git.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/fetch/git.lua b/src/luarocks/fetch/git.lua index 2b8adc78..ff66f7fe 100644 --- a/src/luarocks/fetch/git.lua +++ b/src/luarocks/fetch/git.lua | |||
@@ -55,6 +55,9 @@ local function git_identifier(git_cmd, ver) | |||
55 | return nil | 55 | return nil |
56 | end | 56 | end |
57 | local date_hash = util.popen_read(fs.Q(git_cmd).." log --pretty=format:'%ai %h' -n 1") | 57 | local date_hash = util.popen_read(fs.Q(git_cmd).." log --pretty=format:'%ai %h' -n 1") |
58 | if not date_hash then | ||
59 | return nil | ||
60 | end | ||
58 | local date, time, tz, hash = date_hash:match("([^%s]+) ([^%s]+) ([^%s]+) ([^%s]+)") | 61 | local date, time, tz, hash = date_hash:match("([^%s]+) ([^%s]+) ([^%s]+) ([^%s]+)") |
59 | date = date:gsub("%-", "") | 62 | date = date:gsub("%-", "") |
60 | time = time:gsub(":", "") | 63 | time = time:gsub(":", "") |