From 2fa751931ebc537c25c8a976dd0f1497973780eb Mon Sep 17 00:00:00 2001 From: Philippe Miossec Date: Mon, 1 Dec 2014 23:50:00 +0100 Subject: [PATCH] We should look for renames even if there is a tfs remote (but empty!) --- GitTfs/Commands/InitBranch.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GitTfs/Commands/InitBranch.cs b/GitTfs/Commands/InitBranch.cs index ed3226e0..37c5437a 100644 --- a/GitTfs/Commands/InitBranch.cs +++ b/GitTfs/Commands/InitBranch.cs @@ -295,7 +295,7 @@ namespace Sep.Git.Tfs.Commands foreach (var tfsBranch in branchesToFetch) { _stdout.WriteLine("=> Working on TFS branch : " + tfsBranch.TfsRepositoryPath); - if (tfsBranch.TfsRemote == null) + if (tfsBranch.TfsRemote == null || tfsBranch.TfsRemote.MaxChangesetId == 0) { try {