From b75286375e777193901b2182e5981602969376d5 Mon Sep 17 00:00:00 2001 From: Loic d'Anterroches Date: Wed, 27 May 2009 16:59:25 +0200 Subject: [PATCH] Fixes the case of an empty repository. --- src/IDF/Scm/Git.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IDF/Scm/Git.php b/src/IDF/Scm/Git.php index d35ef95..e65e112 100644 --- a/src/IDF/Scm/Git.php +++ b/src/IDF/Scm/Git.php @@ -76,7 +76,7 @@ class IDF_Scm_Git extends IDF_Scm return $p; } } - return $branches[0]; + return (isset($branches[0])) ? $branches[0] : 'master'; } /**