From e9c593bd2de2211e8e034becb3653df20feedcb3 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 3 Apr 2009 17:37:59 -0400 Subject: [PATCH] Allow custom branch in addition to custom GIT URL. --- etc/phpshellsessions/cvssync | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 1bd16f1c16..238f5d042f 100644 --- a/etc/phpshellsessions/cvssync +++ b/etc/phpshellsessions/cvssync @@ -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; } }