From c9014423c0d1e3d61ce461167b6caf560b45413b Mon Sep 17 00:00:00 2001 From: Ahmad El Sayed Date: Tue, 8 Oct 2024 15:34:40 +0200 Subject: [PATCH] Try get_default_branch_name instead of get_parent_branch_name --- scripts/manage_docker_image.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/manage_docker_image.sh b/scripts/manage_docker_image.sh index 70a7e66..29a4b41 100755 --- a/scripts/manage_docker_image.sh +++ b/scripts/manage_docker_image.sh @@ -248,7 +248,8 @@ function manage_docker_image() { local full_docker_image_name="${server_address}/${project_path}/${docker_image_name}:${docker_image_tag}" - local parent_branch=$(get_parent_branch_name "${repo_path}") + #local parent_branch=$(get_parent_branch_name "${repo_path}") + local parent_branch=$(get_default_branch_name "${repo_path}") echo "Parent branch: ${parent_branch}" if has_git_diffs "${repo_path}" "${parent_branch}" files_to_check[@]; then echo "Image will be built and pushed"