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 856b422 commit a6ddc5cCopy full SHA for a6ddc5c
LibGit2Sharp.Tests/StageFixture.cs
@@ -314,5 +314,25 @@ public void CanStageIgnoredPaths(string path)
314
Assert.Equal(FileStatus.Added, repo.Index.RetrieveStatus(path));
315
}
316
317
+
318
+ [Fact]
319
+ public void CanSuccessfullyStageTheContentOfAModifiedFileOfTheSameSizeWithinTheSameSecond()
320
+ {
321
+ string repoPath = InitNewRepository();
322
323
+ using (var repo = new Repository(repoPath))
324
325
+ for (int i = 0; i < 10; i++)
326
327
+ Touch(repo.Info.WorkingDirectory, "test.txt",
328
+ Guid.NewGuid().ToString());
329
330
+ repo.Index.Stage("test.txt");
331
332
+ Assert.DoesNotThrow(() => repo.Commit(
333
+ "Commit", Constants.Signature, Constants.Signature));
334
+ }
335
336
337
338
0 commit comments