mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Allow custom branch in addition to custom GIT URL.
This commit is contained in:
parent
e761ffb4b4
commit
e9c593bd2d
@ -82,10 +82,14 @@ if(!$found) {
|
||||
if(isURL($branch)) {
|
||||
echo "\n";
|
||||
echo "NOTE: $branch was not found.\n\n";
|
||||
$command = readline("Is this a custom branch URL? [y]? ");
|
||||
$command = readline("Is this a custom GIT URL? [y]? ");
|
||||
if(strtolower($command) == "y" or $command == "") {
|
||||
$GIT_REPO = $branch;
|
||||
$branch = "master";
|
||||
$command = readline("Checkout which branch [master]? ");
|
||||
if($command == "")
|
||||
$branch = "master";
|
||||
if($command)
|
||||
$branch = $command;
|
||||
$found = true;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user