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 b70d403 commit 472eb2cCopy full SHA for 472eb2c
LibGit2Sharp.Tests/StageFixture.cs
@@ -330,5 +330,25 @@ public void CanStageIgnoredPaths(string path)
330
Assert.Equal(FileStatus.Added, repo.Index.RetrieveStatus(path));
331
}
332
333
+
334
+ [Fact]
335
+ public void CanSuccessfullyStageTheContentOfAModifiedFileOfTheSameSizeWithinTheSameSecond()
336
+ {
337
+ string repoPath = InitNewRepository();
338
339
+ using (var repo = new Repository(repoPath))
340
341
+ for (int i = 0; i < 10; i++)
342
343
+ Touch(repo.Info.WorkingDirectory, "test.txt",
344
+ Guid.NewGuid().ToString());
345
346
+ repo.Index.Stage("test.txt");
347
348
+ Assert.DoesNotThrow(() => repo.Commit(
349
+ "Commit", Constants.Signature, Constants.Signature));
350
+ }
351
352
353
354
0 commit comments