mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Apparently git or github doesn't use master as default anymore...
This commit is contained in:
parent
274c87f7a5
commit
f11a622ccc
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue