ref: f12b2f1cd7cd26033457a54454456158e1572834
dir: /test/test.rc/
#!/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