shithub: libgit

ref: 073882f6a2a8c065375b94dc77c59eb7d8b2091f
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

cat .git/INDEX9

echo '========== run test ============'
$t
echo '========== end test ============'

echo git/log: should contain "remove file" and "add file" commits
git/log
echo ''
echo INDEX9: should contain "R NOQID 0 test" line
cat .git/INDEX9
echo walk
walk
rc -i