@@ -718,29 +718,29 @@ private void ConstructRebaseTestRepository(Repository repo)
718
718
719
719
Branch masterBranch1 = repo . CreateBranch ( masterBranch1Name , commit ) ;
720
720
721
- Touch ( workdir , filePathB , string . Join ( Environment . NewLine , fileContentB1 , fileContentB2 ) ) ;
721
+ Touch ( workdir , filePathB , string . Join ( " \r \n " , fileContentB1 , fileContentB2 ) ) ;
722
722
repo . Stage ( filePathB ) ;
723
723
commit = repo . Commit ( "commit 4" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
724
724
725
- Touch ( workdir , filePathB , string . Join ( Environment . NewLine , fileContentB1 , fileContentB2 , fileContentB3 ) ) ;
725
+ Touch ( workdir , filePathB , string . Join ( " \r \n " , fileContentB1 , fileContentB2 , fileContentB3 ) ) ;
726
726
repo . Stage ( filePathB ) ;
727
727
commit = repo . Commit ( "commit 5" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
728
728
729
- Touch ( workdir , filePathB , string . Join ( Environment . NewLine , fileContentB1 , fileContentB2 , fileContentB3 , fileContentB4 ) ) ;
729
+ Touch ( workdir , filePathB , string . Join ( " \r \n " , fileContentB1 , fileContentB2 , fileContentB3 , fileContentB4 ) ) ;
730
730
repo . Stage ( filePathB ) ;
731
731
commit = repo . Commit ( "commit 6" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
732
732
733
733
repo . CreateBranch ( topicBranch1Name , commit ) ;
734
734
735
- Touch ( workdir , filePathC , string . Join ( Environment . NewLine , fileContentC1 , fileContentC2 ) ) ;
735
+ Touch ( workdir , filePathC , string . Join ( " \r \n " , fileContentC1 , fileContentC2 ) ) ;
736
736
repo . Stage ( filePathC ) ;
737
737
commit = repo . Commit ( "commit 7" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
738
738
739
- Touch ( workdir , filePathC , string . Join ( Environment . NewLine , fileContentC1 , fileContentC2 , fileContentC3 ) ) ;
739
+ Touch ( workdir , filePathC , string . Join ( " \r \n " , fileContentC1 , fileContentC2 , fileContentC3 ) ) ;
740
740
repo . Stage ( filePathC ) ;
741
741
commit = repo . Commit ( "commit 8" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
742
742
743
- Touch ( workdir , filePathC , string . Join ( Environment . NewLine , fileContentC1 , fileContentC2 , fileContentC3 , fileContentC4 ) ) ;
743
+ Touch ( workdir , filePathC , string . Join ( " \r \n " , fileContentC1 , fileContentC2 , fileContentC3 , fileContentC4 ) ) ;
744
744
repo . Stage ( filePathC ) ;
745
745
commit = repo . Commit ( "commit 9" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
746
746
@@ -751,18 +751,18 @@ private void ConstructRebaseTestRepository(Repository repo)
751
751
repo . Stage ( filePathD ) ;
752
752
commit = repo . Commit ( "commit 10" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
753
753
754
- Touch ( workdir , filePathD , string . Join ( Environment . NewLine , fileContentD1 , fileContentD2 ) ) ;
754
+ Touch ( workdir , filePathD , string . Join ( " \r \n " , fileContentD1 , fileContentD2 ) ) ;
755
755
repo . Stage ( filePathD ) ;
756
756
commit = repo . Commit ( "commit 11" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
757
757
758
- Touch ( workdir , filePathD , string . Join ( Environment . NewLine , fileContentD1 , fileContentD2 , fileContentD3 ) ) ;
758
+ Touch ( workdir , filePathD , string . Join ( " \r \n " , fileContentD1 , fileContentD2 , fileContentD3 ) ) ;
759
759
repo . Stage ( filePathD ) ;
760
760
commit = repo . Commit ( "commit 12" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
761
761
762
762
repo . CreateBranch ( masterBranch2Name , commit ) ;
763
763
764
764
// Create commit / branch that conflicts with T1 and T2
765
- Touch ( workdir , filePathB , string . Join ( Environment . NewLine , fileContentB1 , fileContentB2 + fileContentB3 + fileContentB4 ) ) ;
765
+ Touch ( workdir , filePathB , string . Join ( " \r \n " , fileContentB1 , fileContentB2 + fileContentB3 + fileContentB4 ) ) ;
766
766
repo . Stage ( filePathB ) ;
767
767
commit = repo . Commit ( "commit 13" , Constants . Signature , Constants . Signature , new CommitOptions ( ) ) ;
768
768
repo . CreateBranch ( conflictBranch1Name , commit ) ;
0 commit comments