itsapi/post-receive

Branch

Closed this issue · 3 comments

olls commented

There could be an option to specify branch in options.json

This would require the options.json to be read in the bash script, or for the git cloning to be done in the python. The latter would ignore the fact that this is meant to work with any project, not just git projects.

olls commented

Yes, this is difficult to figure out the implementation. I don't think that the python should do any Git stuff, because the python is only used to process the files not get the files. For the same reason the options.json probably shouldn't contain any git stuff (the branch). In which case I'm not sure where the Git stuff fits into this system... Maybe run.sh should be devolved into it's own bigger module, to manage getting the files.

olls commented

These implementation details have been decided here.