make gitignore creation more portable
This commit is contained in:
parent
91c69f7cb8
commit
177d47c896
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue