git-buildpackage: drop calls to git.update_submodules()
authorGuido Günther <agx@sigxcpu.org>
Mon, 21 Mar 2011 19:02:00 +0000 (20:02 +0100)
committerGuido Günther <agx@sigxcpu.org>
Mon, 21 Mar 2011 20:05:38 +0000 (21:05 +0100)
since this breaks offline operation.

Git-Dch: Ignore

git-buildpackage

index 48e3fc1ee7e22852c09e076b7fb93c6f81898b58..181405f1660bef967c61a287758f1c2019d55699 100755 (executable)
@@ -106,7 +106,6 @@ def git_archive(repo, cp, output_dir, treeish, comp_type, comp_level):
 
     try:
         if repo.has_submodules():
-            repo.update_submodules()
             git_archive_submodules(repo, treeish, output, prefix,
                                    comp_type, comp_level, comp_opts)
 
@@ -141,8 +140,6 @@ def dump_tree(repo, export_dir, treeish):
         if ret:
             raise GbpError, "Error in dump_tree archive pipe"
 
-        if repo.has_submodules():
-            repo.update_submodules()
         for (subdir, commit) in repo.get_submodules(treeish):
             gbp.log.info("Processing submodule  %s (%s)" % (subdir, commit[0:8]))
             tarpath = [subdir, subdir[2:]][subdir.startswith("./")]