From 0a948d0a745f27c4b1cf61eb3e3e030bb0555ba9 Mon Sep 17 00:00:00 2001 From: Ahmad El Sayed Date: Tue, 8 Oct 2024 16:19:08 +0200 Subject: [PATCH] forgot -C ${repo_path} --- scripts/manage_docker_image.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/manage_docker_image.sh b/scripts/manage_docker_image.sh index 1b7afd7..8439f8f 100755 --- a/scripts/manage_docker_image.sh +++ b/scripts/manage_docker_image.sh @@ -202,8 +202,8 @@ function docker_pull() { function get_default_branch_name() { local repo_path="$1" - git fetch --unshallow - git remote set-head origin --auto + git -C ${repo_path} fetch --unshallow + git -C ${repo_path} remote set-head origin --auto echo $( git -C "${repo_path}" symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@' @@ -212,8 +212,8 @@ function get_default_branch_name() { function get_parent_branch_name() { local repo_path="$1" - git fetch --unshallow - git remote set-head origin --auto + git -C ${repo_path} fetch --unshallow + git -C ${repo_path} remote set-head origin --auto echo $( git -C ${repo_path} show-branch | grep '\*' |