diff --git a/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs b/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs index 0ee4a05f2..fb59b5e4a 100644 --- a/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs +++ b/src/chocolatey/infrastructure.app/commands/ChocolateyPushCommand.cs @@ -71,6 +71,11 @@ public virtual void handle_additional_argument_parsing(IList unparsedArg { configuration.Input = string.Join(" ", unparsedArguments); // path to .nupkg - assume relative + if (string.IsNullOrWhiteSpace(configuration.Sources) && !string.IsNullOrWhiteSpace(configuration.PushCommand.DefaultSource)) + { + configuration.Sources = configuration.PushCommand.DefaultSource; + } + if (string.IsNullOrWhiteSpace(configuration.Sources)) { configuration.Sources = ApplicationParameters.ChocolateyCommunityFeedPushSource;