Refactor Level class so that we don't need to copy shell scripts

This commit is contained in:
Sebastian Morr 2020-09-29 20:36:57 +02:00
parent 3291f0a78b
commit c178a5c63e
6 changed files with 14 additions and 26 deletions
levels/bottom-up/commit-parents

View file

@ -3,8 +3,8 @@ COMMITS=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-o
for COMMIT in $COMMITS; do
echo a commit named $COMMIT
if [ $(git rev-list $COMMIT | wc -l) -ge 3 ]; then
exit 0
return 0
fi
done
exit 1
return 1