From edcf651c16e70a28ff833f7ae0486aa9e4d70fd6 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Thu, 10 Jul 2014 14:03:52 +0200 Subject: [PATCH] git source: explicitly fetch tags in addition to objects Signed-off-by: Tobias Ulmer --- plugins/git.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/git.lua b/plugins/git.lua index 5b6144e..be39968 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -361,6 +361,12 @@ function git.update(info, sourcename) return false, e:cat(re) end + argv = generic_git.git_new_argv(gitdir, gitwc, "fetch", "--tags") + rc, re = generic_git.git(argv) + if not rc then + return false, e:cat(re) + end + -- Use HEAD commit ID to find the branch we're on rc, re, id = generic_git.lookup_id(gitdir, false, "HEAD") if not rc then -- 2.39.5