[gnome-ostree] vcs: Log command invocations for future debugging



commit 22368f6d43561cbb83ceff214eb785295e93249b
Author: Colin Walters <walters verbum org>
Date:   Tue Feb 26 19:06:27 2013 -0500

    vcs: Log command invocations for future debugging
    
    Just easier to see what's going on in the logs.

 src/js/vcs.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/js/vcs.js b/src/js/vcs.js
index 543fce2..b1a5ee8 100644
--- a/src/js/vcs.js
+++ b/src/js/vcs.js
@@ -203,12 +203,16 @@ function ensureVcsMirror(mirrordir, keytype, uri, branch, cancellable,
     }
     GSystem.shutil_rm_rf(tmpMirror, cancellable);
     if (!mirror.query_exists(cancellable)) {
-        ProcUtil.runSync(['git', 'clone', '--mirror', uri, tmpMirror.get_path()], cancellable);
-        ProcUtil.runSync(['git', 'config', 'gc.auto', '0'], cancellable, {cwd: tmpMirror});
+        ProcUtil.runSync(['git', 'clone', '--mirror', uri, tmpMirror.get_path()], cancellable,
+                        { logInitiation: true });
+        ProcUtil.runSync(['git', 'config', 'gc.auto', '0'], cancellable,
+                        { cwd: tmpMirror,
+                          logInitiation: true });
         GSystem.file_rename(tmpMirror, mirror, cancellable);
     } else if (fetch) {
        try {
-            ProcUtil.runSync(['git', 'fetch'], cancellable, {cwd:mirror});
+            ProcUtil.runSync(['git', 'fetch'], cancellable, { cwd: mirror,
+                                                             logInitiation: true });
        } catch (e) {
            if (!params.fetchKeepGoing)
                throw e;


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