Skip to content

Commit

Permalink
Added extra method to checkout a specific branch for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Mar 24, 2024
1 parent 8f300ac commit f24539d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions CloneRepositories.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ clone_date()
cd ..
}

clone_branch()
{
local repo=$1
local branch=$2

clone $repo

cd $repo
git checkout -b branch
cd ..
}

if [ -z "$commit" ]; then
commit=$(git ls-remote "https://github.com/ImageMagick/ImageMagick" "main" | cut -f 1)
fi
Expand Down

0 comments on commit f24539d

Please sign in to comment.