index 59b560bfdf240e87516aadd6a31a2fe84e85d49a..76ad7c344c0546603fb198a9ffb907d6142cbe84 100755 (executable)
git ls-files -s >current &&
cmp current expected'
git ls-files -s >current &&
cmp current expected'
-test_expect_success 'first commit' 'git-commit -m initial'
+test_expect_success 'first commit' 'git commit -m initial'
cat > expected <<\EOF
100644 53ab446c3f4e42ce9bb728a0ccb283a101be4979 0 dir1/file3
cat > expected <<\EOF
100644 53ab446c3f4e42ce9bb728a0ccb283a101be4979 0 dir1/file3
EOF
test_expect_success 'update-index --update from subdir' \
'echo not so happy >file2 &&
EOF
test_expect_success 'update-index --update from subdir' \
'echo not so happy >file2 &&
- cd dir1 &&
+ (cd dir1 &&
cat ../file2 >file3 &&
cat ../file2 >file3 &&
- git update-index --again &&
- cd .. &&
+ git update-index --again
+ ) &&
git ls-files -s >current &&
cmp current expected'
git ls-files -s >current &&
cmp current expected'