From 8f337ec5ff1febdc5d7f77ce717c1b8c7f785fe5 Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Mon, 2 Dec 2013 09:34:27 +0000 Subject: [PATCH] When updating git repos, also grab and update submodules See #1213, re. yasnippet --- package-build.el | 1 + 1 file changed, 1 insertion(+) diff --git a/package-build.el b/package-build.el index 1541f549..3b094456 100644 --- a/package-build.el +++ b/package-build.el @@ -375,6 +375,7 @@ Return a cons cell whose `car' is the root and whose `cdr' is the repository." (pb/run-process nil "git" "clone" repo dir))) (pb/run-process dir "git" "reset" "--hard" (or commit (concat "origin/" (pb/git-head-branch dir)))) + (pb/run-process dir "git" "submodule" "update" "--init" "--recursive") (apply 'pb/run-process dir "git" "log" "-n1" "--pretty=format:'\%ci'" (pb/expand-source-file-list dir config)) (pb/find-parse-time