t9200-git-cvsexportcommit.sh: quiet down commit
Also, fixed an unportable use of 'export'. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
Eric Wong committed
Dec 28, 2006 at 01:10 UTC
e32139aa0e8bea9f976baee2c484d96add37623c
1 file changed
+6
-4
t/t9200-git-cvsexportcommit.sh
+6
-4
@@ -14,16 +14,18 @@ then
14
exit
15
fi
16
17
-export CVSROOT=$(pwd)/cvsroot
18
-export CVSWORK=$(pwd)/cvswork
17
+CVSROOT=$(pwd)/cvsroot
18
+CVSWORK=$(pwd)/cvswork
19
+GIT_DIR=$(pwd)/.git
20
+export CVSROOT CVSWORK GIT_DIR
21
+
22
rm -rf "$CVSROOT" "$CVSWORK"
23
mkdir "$CVSROOT" &&
24
cvs init &&
25
cvs -Q co -d "$CVSWORK" . &&
23
-export GIT_DIR=$(pwd)/.git &&
26
echo >empty &&
27
git add empty &&
26
-git commit -a -m "Initial" 2>/dev/null ||
28
+git commit -q -a -m "Initial" 2>/dev/null ||
29
exit 1
30
31
test_expect_success \