Command line client - eol problem on ADD

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
Posts: 18
Joined: Tue Apr 12, 2005 5:03 pm
Location: Australia

Command line client - eol problem on ADD

Post by rab » Tue Aug 19, 2008 8:45 pm

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/
file Devel/ # output: ASCII C program text
mono ~/vault/vault.exe REMEMBERLOGIN -user msmith -password <password> -server -repository "Scratch Repository"
mono ~/vault/vault.exe SETWORKINGFOLDER $/Devel Devel
mono ~/vault/vault.exe ADD $/Devel Devel/
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/ # output: ASCII C program text, with CRLF line terminators

In the repository I have added .cc as a mergeable file type.

Rob Barnes

Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear

Re: Command line client - eol problem on ADD

Post by Beth » Thu Aug 21, 2008 3:47 pm

You're correct. A bug has been logged. Thanks for the report.
Beth Kieler
SourceGear Technical Support

Post Reply