mirror of
https://github.com/git-learning-game/oh-my-git.git
synced 2025-04-29 16:53:55 +02:00
Refactor Level class so that we don't need to copy shell scripts
This commit is contained in:
parent
3291f0a78b
commit
c178a5c63e
6 changed files with 14 additions and 26 deletions
levels/bottom-up/commit-rhombus
|
@ -3,8 +3,8 @@ COMMITS=$(git cat-file --batch-check='%(objectname) %(objecttype)' --batch-all-o
|
|||
for COMMIT in $COMMITS; do
|
||||
# My first parent's parents has to be the same as my second parent's parent.
|
||||
if [ "$(git rev-parse --verify -q $COMMIT^1^)" = "$(git rev-parse --verify -q $COMMIT^2^)" ]; then
|
||||
exit 0
|
||||
return 0
|
||||
fi
|
||||
done
|
||||
|
||||
exit 1
|
||||
return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue