make gitignore creation more portable
This commit is contained in:
parent
91c69f7cb8
commit
177d47c896
|
@ -305,12 +305,9 @@ public class Repository {
|
||||||
Process.Start();
|
Process.Start();
|
||||||
|
|
||||||
// Add a gitignore file
|
// Add a gitignore file
|
||||||
Process.StartInfo.FileName = "touch";
|
TextWriter Writer = new StreamWriter(RepoPath + "/.gitignore");
|
||||||
Process.StartInfo.Arguments = RepoPath + "/.gitignore";
|
Writer.WriteLine("*~");
|
||||||
Process.Start();
|
Writer.Close();
|
||||||
// TODO: add *~ contents.
|
|
||||||
Process.StartInfo.FileName = "git";
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Add () {
|
public void Add () {
|
||||||
|
|
Loading…
Reference in a new issue