We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9be49f8 commit 4875855Copy full SHA for 4875855
LibGit2Sharp.Tests/StageFixture.cs
@@ -334,5 +334,25 @@ public void CanStageIgnoredPaths(string path)
334
Assert.Equal(FileStatus.Added, repo.RetrieveStatus(path));
335
}
336
337
+
338
+ [Fact]
339
+ public void CanSuccessfullyStageTheContentOfAModifiedFileOfTheSameSizeWithinTheSameSecond()
340
+ {
341
+ string repoPath = InitNewRepository();
342
343
+ using (var repo = new Repository(repoPath))
344
345
+ for (int i = 0; i < 10; i++)
346
347
+ Touch(repo.Info.WorkingDirectory, "test.txt",
348
+ Guid.NewGuid().ToString());
349
350
+ repo.Index.Stage("test.txt");
351
352
+ Assert.DoesNotThrow(() => repo.Commit(
353
+ "Commit", Constants.Signature, Constants.Signature));
354
+ }
355
356
357
358
0 commit comments