From 951ebd4c595741262201b6a4fc4ea7c52183ff86 Mon Sep 17 00:00:00 2001 From: blinry Date: Thu, 29 Oct 2020 17:41:25 +0100 Subject: [PATCH] Hide arrow target when HEAD is on branch --- scenes/arrow.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenes/arrow.gd b/scenes/arrow.gd index 4b4a815..6b407a0 100644 --- a/scenes/arrow.gd +++ b/scenes/arrow.gd @@ -29,7 +29,7 @@ func _process(_delta): $Line.visible = show_arrow $Tip.visible = show_arrow - if $Target.text.substr(0, 5) != "refs/": + if $Target.text.substr(0, 5) != "refs/" or repository.objects.has(target): $Target.text = "" $Line.points[0] = start - parent_position