From: Holger Levsen Date: Sat, 22 Oct 2011 12:05:54 +0000 (+0200) Subject: add support for git submodules X-Git-Url: https://git.uhu-banane.org/?a=commitdiff_plain;h=45bcee5f336d6c0c4dfb4b51e16bba20b4d09236;p=profitbricks%2Fjenkins-build-scripts.git add support for git submodules --- diff --git a/debian_build.py b/debian_build.py index bd38c89..b0958b7 100755 --- a/debian_build.py +++ b/debian_build.py @@ -305,6 +305,10 @@ if __name__ == '__main__': logger_loud_error('git checkout %s was not successfull' % GIT_UPSTREAM_BRANCH) exit_error() + # now init and update submodules + repo.submodule('init') + repo.submodule('update') + # we need to make sure our jenkins config is used, so let's delete any # other config available in repository that might be prefered cleanup_files = ('.gbp.conf', 'debian/gbp.conf', '.git/gbp.conf')