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 "5.0.2 (EXPERIMENTAL)"
12 depends on EXPERIMENTAL
16 prompt "5.0.1 (EXPERIMENTAL)"
17 depends on EXPERIMENTAL
33 prompt "4.2.4 (OBSOLETE)"
38 prompt "4.2.2 (OBSOLETE)"
45 # Don't remove next line
46 # CT_INSERT_VERSION_STRING_BELOW
47 default "5.0.2" if GMP_V_5_0_2
48 default "5.0.1" if GMP_V_5_0_1
49 default "4.3.2" if GMP_V_4_3_2
50 default "4.3.1" if GMP_V_4_3_1
51 default "4.3.0" if GMP_V_4_3_0
52 default "4.2.4" if GMP_V_4_2_4
53 default "4.2.2" if GMP_V_4_2_2