@matheusbsbs / matheus-bagliano / commits / 7fd3ef1fd7
Fork 0

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>

Johannes Sixt committed Mar 7, 2009 at 00:04 UTC 7fd3ef1fd73dffdb9b3445893ab579723ce08e74
2 files changed +3 -3
t/t9400-git-cvsserver-server.sh
+2 -2
@@ -44,7 +44,7 @@ test_expect_success 'setup' '
44 git add secondrootfile &&
45 git commit -m "second root") &&
46 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 &&
48 GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
49 GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log"
50 '
@@ -267,7 +267,7 @@ test_expect_success 'gitcvs.ext.dbname' \
267
268 rm -fr "$SERVERDIR"
269 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 &&
271 GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
272 GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log" ||
273 exit 1
t/t9401-git-cvsserver-crlf.sh
+1 -1
@@ -84,7 +84,7 @@ test_expect_success 'setup' '
84 echo "subdir/file.h crlf" >> .gitattributes &&
85 git add .gitattributes textfile.c binfile.bin mixedUp.c subdir/* &&
86 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 &&
88 GIT_DIR="$SERVERDIR" git config --bool gitcvs.enabled true &&
89 GIT_DIR="$SERVERDIR" git config gitcvs.logfile "$SERVERDIR/gitcvs.log"
90 '