scripts/functions: Fix CT_ExtractGit function.
Change CT_ExtractGit so that it clones the repository, instead of just
symlinking it. After cloning, any given ref is checked out, or if no
ref is given, the HEAD of the repository is checked out.
This makes CT_Extract behave similar for git repositories as it does
for tarballs, so that it for example can be used for passing glibc-ports
as a git repository.
Signed-off-by: "Esben Haabendal" <esben.haabendal@prevas.dk>
[yann.morin.1998@anciens.enib.fr: fix incomplete var rename]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
6 # Don't remove next line
7 # CT_INSERT_VERSION_BELOW
11 prompt "3.0.1 (EXPERIMENTAL)"
12 depends on EXPERIMENTAL
32 prompt "2.3.2 (OBSOLETE)"
37 prompt "2.3.1 (OBSOLETE)"
44 # Don't remove next line
45 # CT_INSERT_VERSION_STRING_BELOW
46 default "3.0.1" if MPFR_V_3_0_1
47 default "3.0.0" if MPFR_V_3_0_0
48 default "2.4.2" if MPFR_V_2_4_2
49 default "2.4.1" if MPFR_V_2_4_1
50 default "2.4.0" if MPFR_V_2_4_0
51 default "2.3.2" if MPFR_V_2_3_2
52 default "2.3.1" if MPFR_V_2_3_1