From afd7b7686631c128dfc360a29e465c187d20caac Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 11 Jan 2013 19:38:49 +0100 Subject: [PATCH] repo git: empty logs make me sad. always show something when no changes this month --- SparkleLib/Git/SparkleRepoGit.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index dc3c2952..d4e1600f 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -731,6 +731,13 @@ namespace SparkleLib.Git { string output = git.StartAndReadStandardOutput (); + if (path == null && string.IsNullOrWhiteSpace (output)) { + git = new SparkleGit (LocalPath, "log -n 75 --raw --find-renames --date=iso " + + "--format=medium --no-color --no-merges"); + + output = git.StartAndReadStandardOutput (); + } + string [] lines = output.Split ("\n".ToCharArray ()); List entries = new List ();