File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -915,7 +915,7 @@ refs/tags/v2.24.0.windows.2: b92b4f3e346316a86311be4d0ac551821b22439b
915915refs/tags/v2.24.1.windows.2: 3689972ae6f8ffa00fffadf8ed25895683855c70
916916refs/tags/v2.25.0-rc0.windows.1: 8f1dcc87c1033d06c7c9c2470ba1d17750fc0b49
917917refs/heads/main: 508bb26ff9091890f4bf9e03540e66b63ac11198
918- refs/heads/shears/seen: e156b7dbaee26058321a1c7469b1a479060c223b
918+ refs/heads/shears/seen: f0d92f2ff90082d2e352d29aec3e9f059f925fbc
919919refs/heads/vs/main: 2fe064a94ca8074cc0a25c5a3222bbff148b7bdb
920920refs/tags/v2.14.4.windows.6: cec94c423c65cb4607d12abc0ae1f74ae7f2095e
921921refs/tags/v2.14.4.windows.7: 7b21bd098949afcffc25c5be70954c57e0c9d80c
Original file line number Diff line number Diff line change @@ -11,6 +11,21 @@ repo_is_hardlinked() {
1111 test_line_count = 0 output
1212}
1313
14+ if test_have_prereq MINGW,BUSYBOX
15+ then
16+ # BusyBox' `find` does not support `-links`. Besides, BusyBox-w32's
17+ # lstat() does not report hard links, just like Git's mingw_lstat()
18+ # (from where BusyBox-w32 got its initial implementation).
19+ repo_is_hardlinked () {
20+ for f in $( find " $1 /objects" -type f)
21+ do
22+ " $SYSTEMROOT " /system32/fsutil.exe \
23+ hardlink list $f > links &&
24+ test_line_count -gt 1 links || return 1
25+ done
26+ }
27+ fi
28+
1429test_expect_success ' preparing origin repository' '
1530 : >file && git add . && git commit -m1 &&
1631 git clone --bare . a.git &&
You can’t perform that action at this time.
0 commit comments