8000 Added key for signing of assemblies2. Modified TreeChanges class to c… · SinghVarun/libgit2sharp@6d98914 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6d98914

Browse files
author
Varun
committed
Added key for signing of assemblies2. Modified TreeChanges class to check for existence of the key before adding to dictionary 3. Modified the assembly info 4. Ran all the test. 5 tests were skipped.
1 parent 7cbd0c6 commit 6d98914

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@
3838
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
3939
<DocumentationFile>bin\Release\LibGit2Sharp.xml</DocumentationFile>
4040
</PropertyGroup>
41+
<PropertyGroup>
42+
<SignAssembly>true</SignAssembly>
43+
</PropertyGroup>
44+
<PropertyGroup>
45+
<AssemblyOriginatorKeyFile>key.snk.pfx</AssemblyOriginatorKeyFile>
46+
</PropertyGroup>
4147
<ItemGroup>
4248
<Reference Include="System" />
4349
<Reference Include="System.Core" />
@@ -350,6 +356,9 @@
350356
<ItemGroup>
351357
<EmbeddedResource Include="libgit2sharp_hash.txt" />
352358
</ItemGroup>
359+
<ItemGroup>
360+
<None Include="key.snk.pfx" />
361+
</ItemGroup>
353362
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
354363
<Import Project="UniqueIdentifier.targets" />
355364
<PropertyGroup>

LibGit2Sharp/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444

4545
[assembly: AssemblyVersion("0.22.0")]
4646
[assembly: AssemblyFileVersion("0.22.0")]
47-
[assembly: AssemblyInformationalVersion("0.22.0-dev00000000000000")]
47+
[assembly: AssemblyInformationalVersion("0.22.0-pre03212015012115")]

LibGit2Sharp/TreeChanges.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,10 @@ private void AddFileChange(GitDiffDelta delta)
6464
var treeEntryChanges = new TreeEntryChanges(delta);
6565

6666
fileDispatcher[treeEntryChanges.Status](this, treeEntryChanges);
67-
changes.Add(treeEntryChanges.Path, treeEntryChanges);
67+
if (!changes.ContainsKey(treeEntryChanges.Path))
68+
{
69+
changes.Add(treeEntryChanges.Path, treeEntryChanges);
70+
}
6871
}
6972

7073
#region IEnumerable<TreeEntryChanges> Members

LibGit2Sharp/key.snk.pfx

1.72 KB
Binary file not shown.

0 commit comments

Comments
 (0)
0