Skip to content

Commit f6592d4

Browse files
author
J Wyman
committed
Normalizing line endings. Settled on \r\n because we already have the SHA for these values.
1 parent b122539 commit f6592d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

LibGit2Sharp.Tests/RebaseFixture.cs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -718,29 +718,29 @@ private void ConstructRebaseTestRepository(Repository repo)
718718

719719
Branch masterBranch1 = repo.CreateBranch(masterBranch1Name, commit);
720720

721-
Touch(workdir, filePathB, string.Join(Environment.NewLine, fileContentB1, fileContentB2));
721+
Touch(workdir, filePathB, string.Join("\r\n", fileContentB1, fileContentB2));
722722
repo.Stage(filePathB);
723723
commit = repo.Commit("commit 4", Constants.Signature, Constants.Signature, new CommitOptions());
724724

725-
Touch(workdir, filePathB, string.Join(Environment.NewLine, fileContentB1, fileContentB2, fileContentB3));
725+
Touch(workdir, filePathB, string.Join("\r\n", fileContentB1, fileContentB2, fileContentB3));
726726
repo.Stage(filePathB);
727727
commit = repo.Commit("commit 5", Constants.Signature, Constants.Signature, new CommitOptions());
728728

729-
Touch(workdir, filePathB, string.Join(Environment.NewLine, fileContentB1, fileContentB2, fileContentB3, fileContentB4));
729+
Touch(workdir, filePathB, string.Join("\r\n", fileContentB1, fileContentB2, fileContentB3, fileContentB4));
730730
repo.Stage(filePathB);
731731
commit = repo.Commit("commit 6", Constants.Signature, Constants.Signature, new CommitOptions());
732732

733733
repo.CreateBranch(topicBranch1Name, commit);
734734

735-
Touch(workdir, filePathC, string.Join(Environment.NewLine, fileContentC1, fileContentC2));
735+
Touch(workdir, filePathC, string.Join("\r\n", fileContentC1, fileContentC2));
736736
repo.Stage(filePathC);
737737
commit = repo.Commit("commit 7", Constants.Signature, Constants.Signature, new CommitOptions());
738738

739-
Touch(workdir, filePathC, string.Join(Environment.NewLine, fileContentC1, fileContentC2, fileContentC3));
739+
Touch(workdir, filePathC, string.Join("\r\n", fileContentC1, fileContentC2, fileContentC3));
740740
repo.Stage(filePathC);
741741
commit = repo.Commit("commit 8", Constants.Signature, Constants.Signature, new CommitOptions());
742742

743-
Touch(workdir, filePathC, string.Join(Environment.NewLine, fileContentC1, fileContentC2, fileContentC3, fileContentC4));
743+
Touch(workdir, filePathC, string.Join("\r\n", fileContentC1, fileContentC2, fileContentC3, fileContentC4));
744744
repo.Stage(filePathC);
745745
commit = repo.Commit("commit 9", Constants.Signature, Constants.Signature, new CommitOptions());
746746

@@ -751,18 +751,18 @@ private void ConstructRebaseTestRepository(Repository repo)
751751
repo.Stage(filePathD);
752752
commit = repo.Commit("commit 10", Constants.Signature, Constants.Signature, new CommitOptions());
753753

754-
Touch(workdir, filePathD, string.Join(Environment.NewLine, fileContentD1, fileContentD2));
754+
Touch(workdir, filePathD, string.Join("\r\n", fileContentD1, fileContentD2));
755755
repo.Stage(filePathD);
756756
commit = repo.Commit("commit 11", Constants.Signature, Constants.Signature, new CommitOptions());
757757

758-
Touch(workdir, filePathD, string.Join(Environment.NewLine, fileContentD1, fileContentD2, fileContentD3));
758+
Touch(workdir, filePathD, string.Join("\r\n", fileContentD1, fileContentD2, fileContentD3));
759759
repo.Stage(filePathD);
760760
commit = repo.Commit("commit 12", Constants.Signature, Constants.Signature, new CommitOptions());
761761

762762
repo.CreateBranch(masterBranch2Name, commit);
763763

764764
// 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));
766766
repo.Stage(filePathB);
767767
commit = repo.Commit("commit 13", Constants.Signature, Constants.Signature, new CommitOptions());
768768
repo.CreateBranch(conflictBranch1Name, commit);

0 commit comments

Comments
 (0)