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>
1 # D.U.M.A. - Detect Unintended Memory Access - Memory checker
3 ## depends on ! BACKEND
5 ## help D.U.M.A. - Detect Unintended Memory Access
6 ## help A memory bound checker, with additional features.
7 ## help Formerly known as Electric Fence.
11 prompt "Build a static library"
16 prompt "Build a shared library"
17 default y if SHARED_LIBS
21 prompt "D.U.M.A. version"
22 # Don't remove next line
23 # CT_INSERT_VERSION_BELOW
31 prompt "2_5_14 (OBSOLETE)"
36 prompt "2_5_12 (OBSOLETE)"
41 prompt "2_5_8 (OBSOLETE)"
46 prompt "2_5_1 (OBSOLETE)"
53 # Don't remove next line
54 # CT_INSERT_VERSION_STRING_BELOW
55 default "2_5_15" if DUMA_V_2_5_15
56 default "2_5_14" if DUMA_V_2_5_14
57 default "2_5_12" if DUMA_V_2_5_12
58 default "2_5_8" if DUMA_V_2_5_8
59 default "2_5_1" if DUMA_V_2_5_1