Index: trunk/packages/invirt-dev/invirtibuilder
===================================================================
--- trunk/packages/invirt-dev/invirtibuilder	(revision 3042)
+++ trunk/packages/invirt-dev/invirtibuilder	(revision 3043)
@@ -130,5 +130,5 @@
 
 
-def tagSubmodule(pocket, package, principal, version, env):
+def tagSubmodule(pocket, package, commit, principal, version, env):
     """Tag a new version of a submodule.
 
@@ -154,13 +154,13 @@
         c.captureOutput(
             ['git', 'tag', '-m', tag_msg, commit],
-            stdout=None,
-            env=env)
-
-
-def updateSubmoduleBranch(pocket, package, ref):
+            env=env,
+            cwd=b.getRepo(package))
+
+
+def updateSubmoduleBranch(pocket, package, commit):
     """Update the appropriately named branch in the submodule."""
     branch = b.pocketToGit(pocket)
     c.captureOutput(
-        ['git', 'update-ref', 'refs/heads/%s' % branch, ref], cwd=b.getRepo(package))
+        ['git', 'update-ref', 'refs/heads/%s' % branch, commit], cwd=b.getRepo(package))
 
 
