you specify it on the command line when you run the command

`fab realstaging remove_submodule_source:ctable-src`


On Tue, Aug 13, 2013 at 5:28 PM, dmyung <notifications@github.com> wrote:

> In fabfile.py:
>
> > @@ -445,11 +445,33 @@ def clone_repo():
> >
> >
> >  @task
> > +def remove_submodule_source(path):
> > +    if not console.confirm('Are you sure you want to delete submodules/{path} on {env.environment}?'.format(path=path, env=env), default=False):
> > +        utils.abort('Action aborted.')
> > +
> > +    require('root', provided_by=('staging', 'preview', 'production', 'india'))
> > +
> > +    execute(_remove_submodule_source_main, path)
> > +    execute(_remove_submodule_source_preindex, path)
> > +
> > +@roles('django_app','django_celery', 'staticfiles', 'django_monolith')
> > +@parallel
> > +def _remove_submodule_source_main(path):
> > +    with cd(env.code_root):
> > +        sudo('rm -rf submodules/%s' % path, user=env.sudo_user)
>
> where are the submodules to be removed specified? i see that it only does
> it by path, but how do we know which stale ones to remove?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dimagi/commcare-hq/pull/853/files#r5738649>
> .
>



-- 
Simon Kelly
Senior Engineer | Dimagi South Africa