redhat: remove GL_DISTGIT_USER, RHDISTGIT and unify dist-git cloning
Bugzilla: INTERNAL
Upstream Status: RHEL Only
Tested: make DISTRO=centos dist-git-test
1) GL_DISTGIT_USER is used for private fork cloning. There is no
reason to use private fork in dist-git cloning. First this would
require to keep the fork in sync with the orig repo main branch
and moreover this behaves differently if the local repo cache is
specified or not(*pkg vs git).
2) Copying sources from repo cache depends on working dir and it
requires the sources to be updated anyways. Just remove this step.
3) *pkg commands allow to pass extra args to git. There is no need
to use two ways how to clone the repo. This also makes RHDISTGIT
obsolete. Use just *pkg for cloning and remove RHDISTGIT.
4) With these clean-ups there is no need to keep clone_tree.sh around.
Just remove it and move the few commands directly into rh-dist-git.sh
Signed-off-by: Frantisek Hrbata <fhrbata@redhat.com>
Edited by Frantisek Hrbata