mattes / migrate

Database migrations. CLI and Golang library.
Other
2.29k stars 326 forks source link

Added a generic git source and unit tests. #341

Closed bernielomax closed 6 years ago

bernielomax commented 6 years ago

Hi @mattes,

I hope you don't mind me raising this PR but I recently had a go at creating a more generic git source that can be used with other vendors other than GitHub. The reason for this was I found myself continually writing checkout wrappers so I could use the filesystem source but it was proofing to be do painful. So thought I would have an attempt at creating a source driver. I ended up using go-git's in memory capabilities and I also added the ability to specify the location of git ssh keys via a http param. Please have a look and provide any feedback. If you like what you see. I am more than happy for you to merge this.

More info can be found in the readme.

Kind regards, Justin