From 177d47c8966249675f7ec851e40ebbbd418f199d Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 29 Apr 2010 11:53:56 +0100 Subject: [PATCH] make gitignore creation more portable --- src/SparklePony.cs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/SparklePony.cs b/src/SparklePony.cs index d759648e..1fbaca6d 100644 --- a/src/SparklePony.cs +++ b/src/SparklePony.cs @@ -305,12 +305,9 @@ public class Repository { Process.Start(); // Add a gitignore file - Process.StartInfo.FileName = "touch"; - Process.StartInfo.Arguments = RepoPath + "/.gitignore"; - Process.Start(); - // TODO: add *~ contents. - Process.StartInfo.FileName = "git"; - + TextWriter Writer = new StreamWriter(RepoPath + "/.gitignore"); + Writer.WriteLine("*~"); + Writer.Close(); } public void Add () {