~cafg10/bazaarsharp/trunk

« back to all changes in this revision

Viewing changes to BzrSharp/Commands/Command.cs

  • Committer: Carlos Flores
  • Date: 2011-04-08 00:55:28 UTC
  • Revision ID: cafg10@gmail.com-20110408005528-8v61uz6vkk93mt72
Fixed wrong path handling with working directories containing spaces.
Improved WorkingTree support, still not fully working on its test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        public virtual IEnumerable<IResult> Run()
58
58
        {
59
59
            var client = ObjectFactory.GetInstance<IClient>();
60
 
            response = new Response(client.Run(Arguments.ToArray(), workingDirectory.AbsolutePath));
 
60
            string workingpath = workingDirectory.LocalPath.Replace("\n", "");
 
61
            response = new Response(client.Run(Arguments.ToArray(), workingpath));
61
62
            return Results;
62
63
        }
63
64