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>
5 prompt "libelf version"
6 # Don't remove next line
7 # CT_INSERT_VERSION_BELOW
13 config LIBELF_V_0_8_12
21 # Don't remove next line
22 # CT_INSERT_VERSION_STRING_BELOW
23 default "0.8.13" if LIBELF_V_0_8_13
24 default "0.8.12" if LIBELF_V_0_8_12