make gitignore creation more portable

This commit is contained in:
Hylke Bons 2010-04-29 11:53:56 +01:00
parent 91c69f7cb8
commit 177d47c896

View file

@ -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 () {