Skip to content

Commit ebd1618

Browse files
committed
Reverted previous commit.
1 parent bd1b63d commit ebd1618

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

src/PostSharp.Engineering.BuildTools/Build/BuildCommand.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,6 @@ public static bool Execute( BuildContext context, BuildSettings settings )
6262
dateTag = DateTime.Now;
6363
}
6464

65-
// Refuse to perform a public build on a non-release branch.
66-
if ( configuration == BuildConfiguration.Public && !settings.Force )
67-
{
68-
if ( !GitHelper.TryGetCurrentBranch( context, out var currentBranch ) )
69-
{
70-
return false;
71-
}
72-
73-
if ( !currentBranch.StartsWith( "release/", StringComparison.OrdinalIgnoreCase ) )
74-
{
75-
context.Console.WriteError( "Cannot perform a public build on a non-release branch without --force." );
76-
77-
return false;
78-
}
79-
}
80-
8165
// Build dependencies.
8266
DependenciesConfigurationFile? dependenciesOverrideFile;
8367

0 commit comments

Comments
 (0)