diff options
Diffstat (limited to 'src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs')
-rw-r--r-- | src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs b/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs index 3124065..b4de743 100644 --- a/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs +++ b/src/DotNetOpenAuth.BuildTasks/GetBuildVersion.cs @@ -59,7 +59,9 @@ namespace DotNetOpenAuth.BuildTasks { string refName = headContent.Substring(5).Trim(); headContent = File.ReadAllText(Path.Combine(this.GitRepoRoot, @".git/" + refName)).Trim(); } - } catch (FileNotFoundException) { } + } catch (FileNotFoundException) { + } catch (DirectoryNotFoundException) { + } if (string.IsNullOrEmpty(headContent)) { Log.LogWarning("Unable to determine the git HEAD commit ID to use for informational version number."); |