]> git.e2factory.org Git - e2factory.git/commitdiff
git: verify that the project tag is pushed to the remote repository
authorGordon Hecker <gh@emlix.com>
Fri, 4 Dec 2009 11:46:10 +0000 (12:46 +0100)
committerGordon Hecker <gh@emlix.com>
Wed, 16 Dec 2009 14:37:28 +0000 (15:37 +0100)
Signed-off-by: Gordon Hecker <gh@emlix.com>
local/e2tool.lua

index 53f205fcc1fb170103452846abed4f53d4446dee..bb2a0b7ecaa75cacaf034f95a765d2d7ff640fe3 100644 (file)
@@ -781,6 +781,14 @@ The newest configuration syntax supported by the tools is %s.
       e2lib.abort(e:cat(re))
     end
   end
+
+  if e2option.opts["check-remote"] then
+    rc, re = generic_git.verify_remote_tag(nil, info.release_id)
+    if not rc then
+      e:append("verifying remote tag failed")
+      e2lib.abort(e:cat(re))
+    end
+  end
   return info, nil
 end