From bb019b0f81e6dbb9ac2c1d4ff145a59ea7bfc1c5 Mon Sep 17 00:00:00 2001 From: "Joel W. Reed" Date: Thu, 28 Feb 2008 12:57:47 -0500 Subject: [PATCH] ignore.get.requests.with.null.tlocals --- tools/opentf/GetCommand.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/opentf/GetCommand.cs b/tools/opentf/GetCommand.cs index 5dfc310..c8cf0d3 100644 --- a/tools/opentf/GetCommand.cs +++ b/tools/opentf/GetCommand.cs @@ -69,9 +69,10 @@ class GetCommand : Command Console.WriteLine("deleting " + CanonicalPath(e.SourceLocalItem)); return; } + + if (String.IsNullOrEmpty(e.TargetLocalItem)) return; - if ((!String.IsNullOrEmpty(e.TargetLocalItem))&& - (!String.IsNullOrEmpty(e.SourceLocalItem))&& + if ((!String.IsNullOrEmpty(e.SourceLocalItem)) && (e.SourceLocalItem != e.TargetLocalItem)) Console.WriteLine("renaming " + CanonicalPath(e.TargetLocalItem)); else -- 2.11.4.GIT