Explorar o código

fix release branch in suites.sh

we changed the naming scheme of the release branch

Signed-off-by: Jessica Frazelle <acidburn@docker.com>
Jessica Frazelle %!s(int64=10) %!d(string=hai) anos
pai
achega
e38a9ecef6
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      contrib/reprepro/suites.sh

+ 2 - 1
contrib/reprepro/suites.sh

@@ -8,4 +8,5 @@ targets_from() {
        git ls-tree -r --name-only origin/master contrib/builder/deb | grep '/Dockerfile$' | sed -r 's!^contrib/builder/deb/|-debootstrap|/Dockerfile$!!g'
 }
 
-{ targets_from master; targets_from release; } | sort -u
+release_branch=$(git ls-remote --heads https://github.com/docker/docker.git | awk -F 'refs/heads/' '$2 ~ /^release/ { print $2 }' | sort -V | tail -1)
+{ targets_from master; targets_from "$release_branch"; } | sort -u