Simplify calculation
Get linked subproject using property
Do not pass gitrepo around
Turn get_repo into property git_repo
Remove not used gitrepo parameters
Simplify handling of Git repository objects