[Satosa-dev] separate repository for microservices and/or plugins?

Scott Koranda skoranda at gmail.com
Wed Sep 27 20:26:43 CEST 2017

> >I set an internal deadline for 22/09 and I will get back to you with
> >updates by that time.
> >
> 2 days later - sorry for that - the repo is online. I kept the history from
> SATOSA by using this cookbook from github : https://help.github.com/articles/splitting-a-subfolder-out-into-a-new-repository/
> I couldn't figure out how I could get 2 subfolders into that easily so that
> meant we lost the history of the tests dir. I believe we can live with that,
> but if not, I'm open to suggestions on how it could have been retained.
> New repo lives in https://github.com/IdentityPython/satosa_microservices


I think losing the history of the tests and the examples directory is
not ideal.

I just tried this and it resulted in what I think is a better solution:

git clone git at github.com:SUNET/SATOSA.git
git remote rm origin
git filter-branch --index-filter 'git rm --cached -qr --ignore-unmatch -- . && git reset -q $GIT_COMMIT -- src/satosa/micro_services tests/satosa/micro_services example/plugins/microservices' --prune-empty -- --all

That leaves a repository with the microservices src, examples, and tests
and their history and that could be turned into the new repository.

Before anybody pushes anything into the new microservices repository can
we consider replacing it with the output from the above?



More information about the Satosa-dev mailing list