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
5 ## select LIBELF_TARGET
7 ## help ltrace is a program that simply runs the specified command until it exits.
8 ## help It intercepts and records the dynamic library calls which are called by
9 ## help the executed process and the signals which are received by that process.
10 ## help It can also intercept and print the system calls executed by the program.
14 prompt "ltrace version"
15 # Don't remove next line
16 # CT_INSERT_VERSION_BELOW
21 select LTRACE_0_5_3_or_later
29 prompt "0.5 (OBSOLETE)"
34 prompt "0.4 (OBSOLETE)"
41 # Don't remove next line
42 # CT_INSERT_VERSION_STRING_BELOW
43 default "0.5.3" if LTRACE_V_0_5_3
44 default "0.5.2" if LTRACE_V_0_5_2
45 default "0.5.1" if LTRACE_V_0_5_1
46 default "0.5" if LTRACE_V_0_5
47 default "0.4" if LTRACE_V_0_4
49 config LTRACE_0_5_3_or_later