File tree 1 file changed +2
-15
lines changed 1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -480,16 +480,6 @@ public void RetrievingAssumedUnchangedMarkedIndexEntries()
480
480
}
481
481
}
482
482
483
- [ Fact ]
484
- public void CanUpdateIndexWhenNothingHappened ( )
485
- {
486
- var path = SandboxAssumeUnchangedTestRepo ( ) ;
487
- using ( var repo = new Repository ( path ) )
488
- {
489
- repo . Index . Update ( ) ;
490
- }
491
- }
492
-
493
483
[ Fact ]
494
484
public void IndexIsUpdatedAfterAddingFile ( )
495
485
{
@@ -498,20 +488,17 @@ public void IndexIsUpdatedAfterAddingFile()
498
488
var path = SandboxAssumeUnchangedTestRepo ( ) ;
499
489
using ( var repo = new Repository ( path ) )
500
490
{
501
- // create a file on disk
491
+ repo . Index . Clear ( ) ;
492
+
502
493
Touch ( repo . Info . WorkingDirectory , fileName , "hello test file\n " ) ;
503
494
504
- repo . Index . Clear ( ) ;
505
495
repo . Index . Add ( fileName ) ;
506
-
507
496
var first = repo . Index [ fileName ] . Id ;
508
497
509
498
Touch ( repo . Info . WorkingDirectory , fileName , "rewrite the file\n " ) ;
510
-
511
499
repo . Index . Update ( ) ;
512
500
513
501
var second = repo . Index [ fileName ] . Id ;
514
-
515
502
Assert . NotEqual ( first , second ) ;
516
503
}
517
504
}
You can’t perform that action at this time.
0 commit comments