From 0e6b5a6caa266fa46d49171d48f7b1c53c8d5b70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Wed, 13 Mar 2019 13:21:22 +0100
Subject: [PATCH] compile_pkgs: fix repo_checkout for branch feed

When branch is provided to feed with `;` we should also replace that
with exact hash.
---
 compile_pkgs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile_pkgs b/compile_pkgs
index 37d28ebf1..d517aa2d5 100755
--- a/compile_pkgs
+++ b/compile_pkgs
@@ -287,7 +287,7 @@ repo_checkout() {
 		if [ -z "$githash" ]; then
 			echo "$line" >> feeds.conf
 		else
-			echo "$line" | sed "s/\^.*$//;s/$/\^$githash/" >> feeds.conf
+			echo "$line" | sed "s/[;^].*$//;s/$/\^$githash/" >> feeds.conf
 		fi
 	done < "$src_dir/feeds.conf"
 }
-- 
GitLab