diff --git a/package_check.sh b/package_check.sh index be7650e..486d00f 100755 --- a/package_check.sh +++ b/package_check.sh @@ -514,6 +514,11 @@ package_path="$script_dir/$package_dir" # If the package is in a git repository if echo "$app_arg" | grep -Eq "https?:\/\/" then + # Force the branch master if no branch is specified. + if [ -z "$gitbranch" ] + then + gitbranch="-b master" + fi # Clone the repository git clone $app_arg $gitbranch "$package_path"