Return full git command context for 'ensure-repo.
Unify return status for 'git fn.
Handle subprocess forking without eating output.

Also ensures checkout state prior to running build-deps.