Skip to content

Commit 7fd3ef1

Browse files
committed
t9400, t9401: Do not force hard-linked clone
The tests do not depend on that the clones are hard-linked, but used --local only as an optimization: At the time that --local was used first in t9400 hard-linked clones were not the default, yet. By removing --local, we help filesystems that do not support hard-links. Signed-off-by: Johannes Sixt <j6t@kdbg.org>
1 parent e986ceb commit 7fd3ef1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

t/t9400-git-cvsserver-server.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ test_expect_success 'setup' '
4444
git add secondrootfile &&
4545
git commit -m "second root") &&
4646
git pull secondroot master &&
47-
git clone -q --local --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
47+
git clone -q --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
4848
GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
4949
GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log"
5050
'
@@ -267,7 +267,7 @@ test_expect_success 'gitcvs.ext.dbname' \
267267

268268
rm -fr "$SERVERDIR"
269269
cd "$WORKDIR" &&
270-
git clone -q --local --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
270+
git clone -q --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
271271
GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
272272
GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log" ||
273273
exit 1

t/t9401-git-cvsserver-crlf.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ test_expect_success 'setup' '
8484
echo "subdir/file.h crlf" >> .gitattributes &&
8585
git add .gitattributes textfile.c binfile.bin mixedUp.c subdir/* &&
8686
git commit -q -m "First Commit" &&
87-
git clone -q --local --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
87+
git clone -q --bare "$WORKDIR/.git" "$SERVERDIR" >/dev/null 2>&1 &&
8888
GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
8989
GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log"
9090
'

0 commit comments

Comments
 (0)