@@ -62,13 +62,13 @@ public void CanRebase(string initialBranchName,
62
62
63
63
RebaseOptions options = new RebaseOptions ( )
64
64
{
65
- RebaseStepStarting = x =>
66
- {
67
- beforeRebaseStepCountCorrect &= beforeStepCallCount == x . StepIndex ;
68
- totalStepCountCorrect &= ( x . TotalStepCount == stepCount ) ;
69
- beforeStepCallCount ++ ;
70
- PreRebaseCommits . Add ( x . StepInfo . Commit ) ;
71
- } ,
65
+ RebaseStepStarting = x =>
66
+ {
67
+ beforeRebaseStepCountCorrect &= beforeStepCallCount == x . StepIndex ;
68
+ totalStepCountCorrect &= ( x . TotalStepCount == stepCount ) ;
69
+ beforeStepCallCount ++ ;
70
+ PreRebaseCommits . Add ( x . StepInfo . Commit ) ;
71
+ } ,
72
72
RebaseStepCompleted = x =>
73
73
{
74
74
afterRebaseStepCountCorrect &= ( afterStepCallCount == x . CompletedStepIndex ) ;
@@ -262,15 +262,15 @@ public void VerifyRebaseDetailed()
262
262
263
263
List < ObjectId > expectedTreeIds = new List < ObjectId > ( )
264
264
{
265
- new ObjectId ( "447bad85bcc1882037848370620a6f88e8ee264e " ) ,
266
- new ObjectId ( "3b0fc846952496a64b6149064cde21215daca8f8 " ) ,
267
- new ObjectId ( "a2d114246012daf3ef8e7ccbfbe91889a24e1e60 " ) ,
265
+ new ObjectId ( "e20530e760c7e3009e2a482d8bcb0cd69f1ffb65 " ) ,
266
+ new ObjectId ( "3a3b0dce3266801cf90eaa58f4b5b1f7955a49be " ) ,
267
+ new ObjectId ( "27559b63dd0afcb93c2058b96e91d9266466c3c4 " ) ,
268
268
} ;
269
269
270
270
List < Commit > rebasedCommits = repo . Commits . QueryBy ( commitFilter ) . ToList ( ) ;
271
271
272
272
Assert . Equal ( 3 , rebasedCommits . Count ) ;
273
- for ( int i = 0 ; i < 3 ; i ++ )
273
+ for ( int i = 0 ; i < 3 ; i ++ )
274
274
{
275
275
Assert . Equal ( expectedTreeIds [ i ] , rebasedCommits [ i ] . Tree . Id ) ;
276
276
Assert . Equal ( Constants . Signature . Name , rebasedCommits [ i ] . Author . Name ) ;
@@ -602,7 +602,7 @@ public void CanRebaseHandlePatchAlreadyApplied()
602
602
603
603
repo . Checkout ( topicBranch1Name ) ;
604
604
605
- Branch topicBranch1Prime = repo . CreateBranch ( topicBranch1PrimeName , masterBranch1Name ) ;
605
+ Branch topicBranch1Prime = repo . CreateBranch ( topicBranch1PrimeName , masterBranch1Name ) ;
606
606
607
607
string newFileRelativePath = "new_file.txt" ;
608
608
Touch ( repo . Info . WorkingDirectory , newFileRelativePath , "New Content" ) ;
@@ -631,7 +631,7 @@ public void CanRebaseHandlePatchAlreadyApplied()
631
631
} ;
632
632
633
633
repo . Rebase . Start ( null , upstreamBranch , null , Constants . Identity2 , options ) ;
634
- ObjectId secondCommitExpectedTreeId = new ObjectId ( "ac04bf04980c9be72f64ba77fd0d9088a40ed681 " ) ;
634
+ ObjectId secondCommitExpectedTreeId = new ObjectId ( "7845bcdf89faf2b1f992758962b333aff874ce51 " ) ;
635
635
Signature secondCommitAuthorSignature = Constants . Signature ;
636
636
Identity secondCommitCommiterIdentity = Constants . Identity2 ;
637
637
@@ -700,6 +700,10 @@ private void ConstructRebaseTestRepository(Repository repo)
700
700
string workdir = repo . Info . WorkingDirectory ;
701
701
Commit commit = null ;
702
702
703
+ CreateAttributesFile ( repo , "* text=auto\n .gitattributes eol=lf" ) ;
704
+ repo . Stage ( ".gitattributes" ) ;
705
+ commit = repo . Commit ( "setup" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
706
+
703
707
Touch ( workdir , filePathA , fileContentA1 ) ;
704
708
repo . Stage ( filePathA ) ;
705
709
commit = repo . Commit ( "commit 1" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
0 commit comments