refactor: share dependenciesSource for gitserver and repo-updater
Created by: stefanhengl
Both gitserver and repo-updater implement the interface dependenciesSource with a lot of duplicate code. We should move the shared code to a dedicated package and import it both in gitserver and repo-udpater.