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>
3 ## depends on ! BACKEND
7 prompt "strace version"
8 # Don't remove next line
9 # CT_INSERT_VERSION_BELOW
11 config STRACE_V_4_5_20
13 prompt "4.5.20 (EXPERIMENTAL)"
14 depends on EXPERIMENTAL
16 config STRACE_V_4_5_19
20 config STRACE_V_4_5_18
24 config STRACE_V_4_5_17
26 prompt "4.5.17 (OBSOLETE)"
29 config STRACE_V_4_5_16
31 prompt "4.5.16 (OBSOLETE)"
34 config STRACE_V_4_5_15
36 prompt "4.5.15 (OBSOLETE)"
43 # Don't remove next line
44 # CT_INSERT_VERSION_STRING_BELOW
45 default "4.5.20" if STRACE_V_4_5_20
46 default "4.5.19" if STRACE_V_4_5_19
47 default "4.5.18" if STRACE_V_4_5_18
48 default "4.5.17" if STRACE_V_4_5_17
49 default "4.5.16" if STRACE_V_4_5_16
50 default "4.5.15" if STRACE_V_4_5_15