Hi Sourcegear Support,
We have noticed a problem with the command client (4.1.2) under mono. Whenever we add a text file with Unix eol it goes into the repository with CRs added.
Here is how to reproduce this on Linux:
create a file with unix style line endings: Devel/testfile.cc
file Devel/testfile.cc # output: ASCII C program text
mono ~/vault/vault.exe REMEMBERLOGIN -user msmith -password <password> -server tps-aus-sql1.topcon.com -repository "Scratch Repository"
mono ~/vault/vault.exe SETWORKINGFOLDER $/Devel Devel
mono ~/vault/vault.exe ADD $/Devel Devel/testfile.cc
mono ~/vault/vault.exe COMMIT -unchanged undocheckout -comment "test crlf bug"
mkdir Devel_2
mono ~/vault/vault.exe SETWORKINGFOLDER $/Devel Devel_2
mono ~/vault/vault.exe GET -eol none -backup no $/Devel
file Devel_2/testfile.cc # output: ASCII C program text, with CRLF line terminators
In the repository I have added .cc as a mergeable file type.
Cheers,
Rob Barnes
Command line client - eol problem on ADD
Moderator: SourceGear
Re: Command line client - eol problem on ADD
You're correct. A bug has been logged. Thanks for the report.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support