From dda68f13a0398860b57326351a118cc3a78a49c1 Mon Sep 17 00:00:00 2001 From: vsnijders Date: Mon, 28 Apr 2008 09:57:41 +0000 Subject: [PATCH] fpsvnsync: don't set empty properties git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@444 8e941d3f-bd1b-0410-a28a-d453659cc2b4 --- applications/fpsvnsync/fpsvnsync.lpr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/applications/fpsvnsync/fpsvnsync.lpr b/applications/fpsvnsync/fpsvnsync.lpr index e25f45b4a..ee89e3d60 100644 --- a/applications/fpsvnsync/fpsvnsync.lpr +++ b/applications/fpsvnsync/fpsvnsync.lpr @@ -226,6 +226,10 @@ var // because of the mime style is non-text. for pass := 1 to 2 do begin for j:=0 to SourceProp.Properties.Count-1 do begin + // if there is no value, don't set the property + if (SourceProp.Properties.ValueFromIndex[j]='') + then continue; + IsSvnEolProp := SourceProp.Properties.Names[j]='svn:eol-style'; if ((pass=1) and (IsSvnEolProp=true)) or ((pass=2) and (IsSvnEolProp=false)) then begin