Skip to content

Add flag on build to run the build against a clean git representation of the project #323

Open
@arruda

Description

@arruda

I was thinking that it would be nice to have a flag, like --clean-repo, that would make the build/deploy command use a clean version of the current git repository of the project, and use this as a base for the _build_egg (https://github.com/scrapinghub/shub/blob/master/shub/deploy.py#L190) command.

This way it would avoid deploying files that should are on .gitignore, and that aren't really part of the project itself. This could also be added in the .yml file so that one wouldn't need to pass this flag all the time.
I believe that later on this could also be extended to other CVS like Hg, but we could start by making it working with git first.

In git I believe we could do so by using git archive command to get all the necessary content of the project (maybe there some other direct route to getting this cleaned project data).

What do you people say? Is this a good idea?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions