summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs')
-rw-r--r--src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs b/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs
index 3124065..48b5d5c 100644
--- a/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs
+++ b/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs
@@ -59,10 +59,8 @@ namespace DotNetOpenAuth.BuildTasks {
string refName = headContent.Substring(5).Trim();
headContent = File.ReadAllText(Path.Combine(this.GitRepoRoot, @".git/" + refName)).Trim();
}
- } catch (FileNotFoundException) { }
-
- if (string.IsNullOrEmpty(headContent)) {
- Log.LogWarning("Unable to determine the git HEAD commit ID to use for informational version number.");
+ } catch (FileNotFoundException) {
+ } catch (DirectoryNotFoundException) {
}
return headContent.Trim();