Skip to content

Commit

Permalink
do not set remote head
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmad-el-sayed committed Oct 9, 2024
1 parent a3d3f10 commit ecdc037
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/manage_docker_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,6 @@ function get_default_branch_name() {
local repo_path="$1"
git -C ${repo_path} fetch --depth=10000
git -C ${repo_path} fetch --all
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 @@ -215,7 +214,6 @@ function get_parent_branch_name() {
local repo_path="$1"
git -C ${repo_path} fetch --depth=10000
git -C ${repo_path} fetch --all
git -C ${repo_path} remote set-head origin --auto
echo $(
git -C ${repo_path} show-branch |
grep '\*' |
Expand Down

0 comments on commit ecdc037

Please sign in to comment.