[toolforge-deploy] fix bug in setup_toolforge_deploy
- default to main if branch not in repo. this fixes tests for packages too
-
git reset --hard origin/branch
instead ofFETCH_HEAD
.
This is becausegit fetch --all
does not updateFETCH_HEAD
Bug: T358225
Signed-off-by: raymond-ndibe rndibe@wikimedia.org