From 921b062c2e71a7c7fdaf9e88e76acb56ddc35487 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 6 Jul 2013 15:53:41 +0100 Subject: [PATCH] repo git: Detect more out of space errors --- SparkleLib/Git/SparkleRepoGit.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index b31a309a..727677af 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -719,7 +719,8 @@ namespace SparkleLib.Git { Error = ErrorStatus.AuthenticationFailed; - } else if (line.StartsWith ("error: Disk space exceeded")) { + } else if (line.StartsWith ("error: Disk space exceeded") || + line.Endswith ("No space left on device")) { Error = ErrorStatus.DiskSpaceExceeded; } else if (line.EndsWith ("does not appear to be a git repository")) {