[ostree] ostbuild: Use correct directory for submodule update



commit b26b981b0d5817555d9600de4f706f494c7877d3
Author: Colin Walters <walters verbum org>
Date:   Wed Feb 22 14:17:18 2012 -0500

    ostbuild: Use correct directory for submodule update

 src/ostbuild/pyostbuild/vcs.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ostbuild/pyostbuild/vcs.py b/src/ostbuild/pyostbuild/vcs.py
index cbb6b0e..00d936d 100755
--- a/src/ostbuild/pyostbuild/vcs.py
+++ b/src/ostbuild/pyostbuild/vcs.py
@@ -63,7 +63,7 @@ def get_vcs_checkout(mirrordir, keytype, uri, dest, branch, overwrite=True):
     run_sync(['git', 'submodule', 'init'], cwd=tmp_dest)
     have_submodules = _fixup_submodule_references(mirrordir, tmp_dest)
     if have_submodules:
-        run_sync(['git', 'submodule', 'update'])
+        run_sync(['git', 'submodule', 'update'], cwd=tmp_dest)
     os.rename(tmp_dest, dest)
     return dest
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]