From e8b8583f4950956637b0f8fa15953e3901eba419 Mon Sep 17 00:00:00 2001 From: blinry Date: Mon, 12 Apr 2021 16:23:10 +0200 Subject: [PATCH] Simplify the win condition for the remotes/problems level Basically, the level now accepts every compromise, and just looks at the shape of the commit graph. Closes #87. --- levels/remotes/problems | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/levels/remotes/problems b/levels/remotes/problems index d2d8e33..fab71c5 100644 --- a/levels/remotes/problems +++ b/levels/remotes/problems @@ -30,4 +30,4 @@ test "$(git status -s)" = "" [win friend] # Look at your friend's suggestion, make a compromise, and push it back. -git show main:file | grep green && git show main:file | grep blue || git show main:file | grep turquoise +git rev-parse main^ && test "$(git rev-parse main^1^)" = "$(git rev-parse main^2^)"