Browse Source

Avoid build error when git commit hash cannot be retrieved (build with revision number 0)

pull/2/head
Daniel Grunwald 15 years ago
parent
commit
a143badda1
  1. 4
      src/Main/Base/Project/Src/Gui/Workbench/Layouts/AvalonWorkbenchWindow.cs
  2. 8
      src/Main/GlobalAssemblyInfo.template
  3. 11
      src/Tools/UpdateAssemblyInfo/Main.cs

4
src/Main/Base/Project/Src/Gui/Workbench/Layouts/AvalonWorkbenchWindow.cs

@ -358,9 +358,7 @@ namespace ICSharpCode.SharpDevelop.Gui @@ -358,9 +358,7 @@ namespace ICSharpCode.SharpDevelop.Gui
{
IViewContent content = ActiveViewContent;
if (content != null) {
if (this.DragEnabledArea != null) {
this.DragEnabledArea.ToolTip = content.PrimaryFileName;
}
this.InfoTip = content.PrimaryFileName;
string newTitle = content.TitleName;

8
src/Main/GlobalAssemblyInfo.template

@ -1,9 +1,5 @@ @@ -1,9 +1,5 @@
// <file>
// <copyright see="prj:///doc/copyright.txt"/>
// <license see="prj:///doc/license.txt"/>
// <owner name="Daniel Grunwald" email="daniel@danielgrunwald.de"/>
// <version>$Revision$</version>
// </file>
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
/////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////

11
src/Tools/UpdateAssemblyInfo/Main.cs

@ -1,9 +1,6 @@ @@ -1,9 +1,6 @@
/*
* Created by SharpDevelop.
* User: Daniel Grunwald
* Date: 21.07.2005
* Time: 12:00
*/
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
using System;
using System.Collections.Specialized;
using System.Diagnostics;
@ -267,7 +264,7 @@ namespace UpdateAssemblyInfo @@ -267,7 +264,7 @@ namespace UpdateAssemblyInfo
Console.WriteLine("Build continues with revision number '0'...");
revisionNumber = "0";
gitCommitHash = null;
gitCommitHash = "0000000000000000000000000000000000000000";
}
if (revisionNumber == null || revisionNumber.Length == 0) {
revisionNumber = "0";

Loading…
Cancel
Save