]> git.e2factory.org Git - e2factory.git/commitdiff
git source: explicitly fetch tags in addition to objects
authorTobias Ulmer <tu@emlix.com>
Thu, 10 Jul 2014 12:03:52 +0000 (14:03 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/git.lua

index 5b6144e8608f0c14bd5efb5a1bc84ff5257055a4..be39968b6b9ac964de49291b23206587366365f1 100644 (file)
@@ -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