shithub: libgit

ref: 3334f29a9e020b0447d81ac4afc8e1b31452276f
dir: /test/test.rc/

View raw version
#!/bin/rc

rfork en

t=`{pwd}
t=$t/6.out

mk -a
ramfs

mkdir -p /tmp/repo
cd /tmp/repo
git/init .

echo testfile > beforetest
git/add beforetest
git/commit -m 'init' beforetest

cat <<EOF >.git/config
[user]
	name = testuser
	email = testmail
EOF

echo '========== run test ============'
$t
echo '========== end test ============'
rc -i