From 5df71a1db3257efc5c653fb3b21c72c80dc4a0e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Wed, 29 Jun 2016 12:35:06 +0200 Subject: [PATCH 1/2] Fixed typo: Software and its features are usually 'deprecated', not 'depreciated'. --- src/GitVersionCore/GitVersionFinder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitVersionCore/GitVersionFinder.cs b/src/GitVersionCore/GitVersionFinder.cs index 1b68633262..926a421933 100644 --- a/src/GitVersionCore/GitVersionFinder.cs +++ b/src/GitVersionCore/GitVersionFinder.cs @@ -14,7 +14,7 @@ public SemanticVersion FindVersion(GitVersionContext context) var filePath = Path.Combine(context.Repository.GetRepositoryDirectory(), "NextVersion.txt"); if (File.Exists(filePath)) { - throw new WarningException("NextVersion.txt has been depreciated. See http://gitversion.readthedocs.org/en/latest/configuration/ for replacement"); + throw new WarningException("NextVersion.txt has been deprecated. See http://gitversion.readthedocs.org/en/latest/configuration/ for replacement"); } return new NextVersionCalculator().FindVersion(context); From c4f0e76fe4354b46ff1cdf9083fba39d45301fc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Wed, 29 Jun 2016 12:35:50 +0200 Subject: [PATCH 2/2] Don't swallow unexpected exceptions form LibGit2Sharp; they might be very valuable for debugging purposes. --- src/GitVersionCore/GitPreparer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitVersionCore/GitPreparer.cs b/src/GitVersionCore/GitPreparer.cs index a26d228fab..e130e8ccd6 100644 --- a/src/GitVersionCore/GitPreparer.cs +++ b/src/GitVersionCore/GitPreparer.cs @@ -191,7 +191,7 @@ static void CloneRepository(string repositoryUrl, string gitDirectory, Authentic throw new Exception("Not found: The repository was not found"); } - throw new Exception("There was an unknown problem with the Git repository you provided"); + throw new Exception("There was an unknown problem with the Git repository you provided", ex); } } }