From e2b4d60f50df2af69fca7d458f6b68632883ed6d Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Mon, 4 Nov 2013 11:28:18 +0100 Subject: [PATCH] correct quick-clone where initBranch is null should fix #477 --- GitTfs/Commands/Clone.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GitTfs/Commands/Clone.cs b/GitTfs/Commands/Clone.cs index 83ff219a..c1db04cc 100644 --- a/GitTfs/Commands/Clone.cs +++ b/GitTfs/Commands/Clone.cs @@ -30,7 +30,8 @@ namespace Sep.Git.Tfs.Commands this.globals = globals; this.initBranch = initBranch; //[Temporary] Remove in the next version! - initBranch.DontDisplayObsoleteMessage = true; + if (initBranch != null) + initBranch.DontDisplayObsoleteMessage = true; this.stdout = stdout; }