Git pull adds \r to validation text

Bug reports.
iamhaller
Posts: 2
Joined: Fri Jan 06, 2017 11:40 am

Git pull adds \r to validation text

Post by iamhaller » Fri Jan 06, 2017 12:04 pm

We discovered an issue when doing a git pull for our project. Whenever a recording has been made where the Innertext validation has added spaces on the end ranorex will automatically add an \n to the user code.

When this validation has been commited and then pulled by another member the code is changed by ranorex with the added \r. See details below.

Original commit code:

Code: Select all

Validate.Attribute(repo.Wizard2015TST.Candidate.DivTagInCaseOfEmergencyInfo, "InnerText", "\nIn Case Of Emergency \n                    ");
Pulled code:

Code: Select all

Validate.Attribute(repo.Wizard2015TST.Candidate.DivTagInCaseOfEmergencyInfo, "InnerText", "\nIn Case Of Emergency \r\n                    ");
Screenshot of the action item
Image

Gitlab commit
Image
This doesn't include the \r yet.


Ranorex version: 6.2.0
TortoiseGit: 2.3.0.0

iamhaller
Posts: 2
Joined: Fri Jan 06, 2017 11:40 am

Re: Git pull adds \r to validation text

Post by iamhaller » Thu Jan 12, 2017 2:05 pm

Issues has been resolved by the help of ranorex support.

For our case the solution was to change the checkout and commit options used by Git.
This was done by using the following command in Git Bash

Code: Select all

git config --global core.autocrlf false