diff --git a/lists/repository.m4 b/lists/repository.m4
index 4f750eabc39b62e3b2e5fe8589402c74fad04d67..6e428aef59389dd138c246b21f6277a50c5a02b1 100644
--- a/lists/repository.m4
+++ b/lists/repository.m4
@@ -3,7 +3,7 @@ dnl We expect this to be include in base.lua just after utils.m4
 divert(-1)
 
 # This is definition of subrepositories
-pushdef(`SUBDIRS',`subdirs = {"base", "core" esyscmd(`awk "/src-git/{printf \", \\\"%s\\\"\", \$'`2}" feeds.conf')}')
+pushdef(`SUBDIRS',`subdirs = {"base", "core" esyscmd(`awk "/^src-git/{printf \", \\\"%s\\\"\", \$'`2}" feeds.conf')}')
 
 divert(0)dnl
 local board