Skip to content

Commit 4659538

Browse files
committed
---
yaml --- r: 6461842 b: refs/heads/shears/seen c: f0d92f2 h: refs/heads/main
1 parent d7afb7d commit 4659538

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ refs/tags/v2.24.0.windows.2: b92b4f3e346316a86311be4d0ac551821b22439b
915915
refs/tags/v2.24.1.windows.2: 3689972ae6f8ffa00fffadf8ed25895683855c70
916916
refs/tags/v2.25.0-rc0.windows.1: 8f1dcc87c1033d06c7c9c2470ba1d17750fc0b49
917917
refs/heads/main: 508bb26ff9091890f4bf9e03540e66b63ac11198
918-
refs/heads/shears/seen: e156b7dbaee26058321a1c7469b1a479060c223b
918+
refs/heads/shears/seen: f0d92f2ff90082d2e352d29aec3e9f059f925fbc
919919
refs/heads/vs/main: 2fe064a94ca8074cc0a25c5a3222bbff148b7bdb
920920
refs/tags/v2.14.4.windows.6: cec94c423c65cb4607d12abc0ae1f74ae7f2095e
921921
refs/tags/v2.14.4.windows.7: 7b21bd098949afcffc25c5be70954c57e0c9d80c

branches/shears/seen/t/t5605-clone-local.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
1429
test_expect_success 'preparing origin repository' '
1530
: >file && git add . && git commit -m1 &&
1631
git clone --bare . a.git &&

0 commit comments

Comments
 (0)