Page 1 of 1

Git pull adds \r to validation text

Posted: Fri Jan 06, 2017 12:04 pm
by iamhaller
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

Re: Git pull adds \r to validation text

Posted: Thu Jan 12, 2017 2:05 pm
by iamhaller
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