Skip to content

Commit

Permalink
forgot -C ${repo_path}
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Oct 8, 2024
1 parent b583b6f commit 0a948d0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/manage_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/@@'
Expand All @@ -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 '\*' |
Expand Down

0 comments on commit 0a948d0

Please sign in to comment.