Skip to content

Commit

Permalink
Use feature detection instead of version detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnoonan committed May 13, 2016
1 parent 628216a commit a55c0a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Octopus.Cli/Exporters/ProjectExporter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ protected override void Export(Dictionary<string, string> parameters)

var channels = new ChannelResource[0];
var channelLifecycles = new List<ReferenceDataItem>();
if (new SemanticVersion(Repository.Client.RootDocument.Version) >= new SemanticVersion(3, 2, 0, 0))
if (Repository.SupportsChannels())
{
Log.Debug("Finding channels for project");
channels = Repository.Projects.GetChannels(project).GetAllPages(Repository).ToArray();
Expand Down

0 comments on commit a55c0a5

Please sign in to comment.