Commit Graph

1 Commits (60ef2a7c67c33287be1872b8d4ee3de6a38ed3a9)

Author SHA1 Message Date
mrsdizzie e57f763937 Add migration to sanitize repository original_url ()
* Add migration to sanitize repository original_url

During a large code move in  the OriginalURL field was
accidentially changed to be populated with the CloneAddr field which
will contain the username and/or password provided during a migration.

This behavior was fixed in previous PR  and this migration will
remove any authentication details that were stored in the database
between those two.

* use net/url to rebuild URL instead of strings.Replace

* Update models/migrations/migrations.go

* changes per lunny

* make fmt