Bug 1135798 - Deploy script: Remove unnecessary submodule git commands

We don't use git submodules, so let's not bother trying to update them.
This commit is contained in:
Ed Morley 2015-03-02 10:25:59 +00:00
Родитель c3afe9584d
Коммит d011d2f9bd
1 изменённых файлов: 0 добавлений и 6 удалений

Просмотреть файл

@ -28,15 +28,11 @@ def pre_update(ctx, ref=settings.UPDATE_REF):
with ctx.lcd(th_service_src): with ctx.lcd(th_service_src):
ctx.local('git fetch --quiet origin %s' % ref) ctx.local('git fetch --quiet origin %s' % ref)
ctx.local('git reset --hard FETCH_HEAD') ctx.local('git reset --hard FETCH_HEAD')
ctx.local('git submodule sync')
ctx.local('git submodule update --init --recursive')
ctx.local("find . -type f -name '*.pyc' -delete") ctx.local("find . -type f -name '*.pyc' -delete")
with ctx.lcd(th_ui_src): with ctx.lcd(th_ui_src):
ctx.local('git fetch --quiet origin %s' % ref) ctx.local('git fetch --quiet origin %s' % ref)
ctx.local('git reset --hard FETCH_HEAD') ctx.local('git reset --hard FETCH_HEAD')
ctx.local('git submodule sync')
ctx.local('git submodule update --init --recursive')
ctx.local("find . -type f -name '*.pyc' -delete") ctx.local("find . -type f -name '*.pyc' -delete")
@ -112,7 +108,6 @@ def deploy(ctx):
ctx.local('git branch') ctx.local('git branch')
ctx.local('git log -3') ctx.local('git log -3')
ctx.local('git status') ctx.local('git status')
ctx.local('git submodule status')
ctx.local('git rev-parse HEAD > treeherder/webapp/media/revision') ctx.local('git rev-parse HEAD > treeherder/webapp/media/revision')
with ctx.lcd(th_ui_src): with ctx.lcd(th_ui_src):
@ -121,5 +116,4 @@ def deploy(ctx):
ctx.local('git branch') ctx.local('git branch')
ctx.local('git log -3') ctx.local('git log -3')
ctx.local('git status') ctx.local('git status')
ctx.local('git submodule status')
ctx.local('git rev-parse HEAD >> ../treeherder-service/treeherder/webapp/media/revision') ctx.local('git rev-parse HEAD >> ../treeherder-service/treeherder/webapp/media/revision')