Merge remote-tracking branch 'beaugunderson/windows' into windows (only SparkleLib/Git/SparkleFetcherGit.cs)
This commit is contained in:
commit
9202ed1117
|
@ -179,10 +179,22 @@ namespace SparkleLib {
|
||||||
// Add a .gitignore file to the repo
|
// Add a .gitignore file to the repo
|
||||||
private void InstallExcludeRules ()
|
private void InstallExcludeRules ()
|
||||||
{
|
{
|
||||||
string exlude_rules_file_path = SparkleHelpers.CombineMore (
|
string exclude_rules_file_path = SparkleHelpers.CombineMore (
|
||||||
this.target_folder, ".git", "info", "exclude");
|
this.target_folder, ".git", "info", "exclude");
|
||||||
|
|
||||||
TextWriter writer = new StreamWriter (exlude_rules_file_path);
|
string directory = Path.GetDirectoryName(exclude_rules_file_path);
|
||||||
|
|
||||||
|
if (directory == null)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!Directory.Exists(directory))
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(directory);
|
||||||
|
}
|
||||||
|
|
||||||
|
TextWriter writer = new StreamWriter (exclude_rules_file_path);
|
||||||
|
|
||||||
// gedit and emacs
|
// gedit and emacs
|
||||||
writer.WriteLine ("*~");
|
writer.WriteLine ("*~");
|
||||||
|
|
Loading…
Reference in a new issue