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 --- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S.orig 2007-08-03 16:44:15.000000000 +0100
2 +++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevellock.S 2008-08-19 21:08:19.000000000 +0100
7 - mov #FUTEX_PRIVATE_FLAG, tmp
8 + mov #FUTEX_PRIVATE_FLAG, tmp ; \
9 99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
10 98: extu.b tmp, tmp ; \
16 - mov #FUTEX_PRIVATE_FLAG, tmp
17 + mov #FUTEX_PRIVATE_FLAG, tmp ; \
18 99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
19 98: extu.b tmp, tmp ; \
22 mov #FUTEX_WAIT, tmp ; \
25 -# define LOAD_FUTEX_WAKE(reg,tmp) \
26 +# define LOAD_FUTEX_WAKE(reg,tmp,tmp2) \
32 - mov #FUTEX_PRIVATE_FLAG, tmp
33 + mov #FUTEX_PRIVATE_FLAG, tmp ; \
34 99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
35 98: extu.b tmp, tmp ; \
37 --- glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S.orig 2007-08-03 16:44:57.000000000 +0100
38 +++ glibc-2.7/nptl/sysdeps/unix/sysv/linux/sh/lowlevelrobustlock.S 2008-08-19 21:08:22.000000000 +0100
43 - mov #FUTEX_PRIVATE_FLAG, tmp
44 + mov #FUTEX_PRIVATE_FLAG, tmp ; \
45 99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
46 98: extu.b tmp, tmp ; \
52 - mov #FUTEX_PRIVATE_FLAG, tmp
53 + mov #FUTEX_PRIVATE_FLAG, tmp ; \
54 99: .word PRIVATE_FUTEX - TLS_PRE_TCB_SIZE ; \
55 98: extu.b tmp, tmp ; \