From: Tobias Ulmer Date: Thu, 10 Jul 2014 12:03:52 +0000 (+0200) Subject: git source: explicitly fetch tags in addition to objects X-Git-Tag: e2factory-2.3.15rc1~195 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=edcf651c16e70a28ff833f7ae0486aa9e4d70fd6;p=e2factory.git git source: explicitly fetch tags in addition to objects Signed-off-by: Tobias Ulmer --- 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