From d7347c8d9320aca567b840173f7305d2c6b272c8 Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Mon, 25 Mar 2013 14:23:25 +0100 Subject: [PATCH] Correct crash when clone the whole repository Forget to exit after displaying the warning. Should fix #330 --- GitTfs/Commands/Clone.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/GitTfs/Commands/Clone.cs b/GitTfs/Commands/Clone.cs index e2efc9d5..e392c39e 100644 --- a/GitTfs/Commands/Clone.cs +++ b/GitTfs/Commands/Clone.cs @@ -114,6 +114,7 @@ namespace Sep.Git.Tfs.Commands if (withBranches) throw new GitTfsException("error: cloning the whole repository or too high in the repository path doesn't permit to manage branches!\n" + cloneMsg); stdout.WriteLine("warning: you are going to clone the whole repository or too high in the repository path !\n" + cloneMsg); + return; } var tfsBranchesPath = tfsTrunkRepository.GetAllChildren();