Skip to content

Executing CommandLineInstruction fails if there are too many changed paths #22

Description

@steffen-wilke

On very large commits that affect many files, a CommandLineInstruction hook fails if there are too many affected files.

The tool tries to provide these files as command line arguments but reaches a limit for the arguments that can be passed to ProcessStartInfo.Arguments.

27.07.2019-11:40:32,281 [1] ERROR Silverseed.RepoCop.Subversion.Program.Main(C:\projects\repocop\source\Console\Program.cs:133) - An error occured
System.ComponentModel.Win32Exception (0x80004005): Der Dateiname oder die Erweiterung ist zu lang
   bei System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
   bei System.Diagnostics.Process.Start(ProcessStartInfo startInfo)
   bei Silverseed.RepoCop.CommandLineInstruction.ExecuteFireAndForgetInstruction() in C:\projects\repocop\source\CommandLineInstruction.cs:Zeile 100.
   bei Silverseed.RepoCop.MacroInstruction.<>c__DisplayClass2_0.<InternalExecute>b__0(Instruction x) in C:\projects\repocop\source\MacroInstruction.cs:Zeile 35.
   bei System.Collections.Generic.List`1.ForEach(Action`1 action)
   bei Silverseed.RepoCop.MacroInstruction.InternalExecute() in C:\projects\repocop\source\MacroInstruction.cs:Zeile 36.
   bei Silverseed.RepoCop.MacroInstruction.<>c__DisplayClass2_0.<InternalExecute>b__0(Instruction x) in C:\projects\repocop\source\MacroInstruction.cs:Zeile 35.
   bei System.Collections.Generic.List`1.ForEach(Action`1 action)
   bei Silverseed.RepoCop.MacroInstruction.InternalExecute() in C:\projects\repocop\source\MacroInstruction.cs:Zeile 36.
   bei Silverseed.RepoCop.Subversion.Program.Main(String[] args) in C:\projects\repocop\source\Console\Program.cs:Zeile 133.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions