From b50f4d25b843d779e99017b0231f74a142130bdf Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 4 Jan 2013 16:13:45 +0000 Subject: [PATCH] greload updates submodules [#100] --- modules/admin/admin.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/admin/admin.js b/modules/admin/admin.js index 1cc12f3..83eab08 100644 --- a/modules/admin/admin.js +++ b/modules/admin/admin.js @@ -44,9 +44,11 @@ var admin = function(dbot) { // Do a git pull and reload 'greload': function(event) { - var child = exec("git pull", function (error, stdout, stderr) { - event.reply(dbot.t('gpull')); - commands.reload(event); + exec("git pull", function (error, stdout, stderr) { + exec("git submodule update", function (error, stdout, stderr) { + event.reply(dbot.t('gpull')); + commands.reload(event); + }.bind(this)); }.bind(this)); },