Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default branch instead of "master" #100

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions coinbrew
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,7 @@ function fetch_proj {
fi
fi
fi
if [ $keep_current = "true" ]; then
if [ $keep_current = "true" ] || [ $version = "master" ]; then
version=$current_version
fi
if ([[ $version != *$current_version ]] &&
Expand Down Expand Up @@ -1246,7 +1246,11 @@ function fetch_proj {
else
if [ "$sha" = "" ]; then
print_action "Fetching $dir $version"
git clone --branch=$version $url $dir
if [ "$version" = "master" ]; then
git clone $url $dir
else
git clone --branch=$version $url $dir
fi
else
print_action "Fetching $dir SHA $sha"
git clone $url $dir
Expand Down