|
@@ -70,6 +70,7 @@ local function write_lockfile(verbose)
|
|
name = name,
|
|
name = name,
|
|
url = url,
|
|
url = url,
|
|
commit = commit,
|
|
commit = commit,
|
|
|
|
+ branch = plugin.branch or "HEAD",
|
|
})
|
|
})
|
|
end
|
|
end
|
|
|
|
|
|
@@ -90,7 +91,7 @@ local function write_lockfile(verbose)
|
|
}
|
|
}
|
|
end
|
|
end
|
|
|
|
|
|
- local handle = call_proc("git", { args = { "ls-remote", entry.url, "HEAD" } }, on_done)
|
|
|
|
|
|
+ local handle = call_proc("git", { args = { "ls-remote", entry.url, entry.branch } }, on_done)
|
|
assert(handle)
|
|
assert(handle)
|
|
table.insert(active_jobs, handle)
|
|
table.insert(active_jobs, handle)
|
|
end
|
|
end
|