Skip to content

Commit e3d80a9

Browse files
authored
Merge pull request #24 from ahwm/issue23
fix for #23
2 parents eab3f52 + 9af18d5 commit e3d80a9

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/SvnManager.WebUI/SvnBackups.cs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,16 @@ public static void DeleteLocal()
123123

124124
public static void RunBackups()
125125
{
126-
string output;
127126
try
128127
{
129128
var repos = new DirectoryInfo(RepoPath).GetDirectories();
130129
foreach (var r in repos)
131130
{
132131
using (Process p = new Process())
133132
{
134-
p.StartInfo = new ProcessStartInfo($@"{SvnLocation}\svnadmin", $@"dump {r.FullName} > {BackupLocation}\{r.Name}_{DateTime.UtcNow:yyyyMMddHHmm}.dump")
135-
{
136-
RedirectStandardError = true
137-
};
133+
p.StartInfo = new ProcessStartInfo($@"cmd /c", $@"{SvnLocation}\svnadmin dump {r.FullName} > {BackupLocation}\{r.Name}_{DateTime.UtcNow:yyyyMMddHHmm}.svndump");
138134
p.Start();
139135
p.WaitForExit();
140-
output = p.StandardError.ReadToEnd();
141-
if (p.ExitCode != 0)
142-
{
143-
// TODO: Send email with output ?
144-
}
145136
}
146137
}
147138
}

0 commit comments

Comments
 (0)