Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NBug] fatal: unrecognized argument: -> #11682

Open
grantleeman opened this issue Apr 16, 2024 · 1 comment
Open

[NBug] fatal: unrecognized argument: -> #11682

grantleeman opened this issue Apr 16, 2024 · 1 comment

Comments

@grantleeman
Copy link

Environment

  • Git Extensions 4.2.1.17611
  • Build b0c0b28
  • Git 2.44.0.windows.1
  • Microsoft Windows NT 10.0.22631.0
  • .NET 6.0.29
  • DPI 120dpi (125% scaling)
  • Portable: False

Issue description

Exit code: 128
Command: C:\Users\GrantLeeman\AppData\Local\Programs\Git\bin\git.exe
Arguments: -c log.showSignature=false log --pretty=%ci
%an
%s --max-count=1 origin/HEAD -> origin/master --
Working directory: C:\Dev\Repos\Vegas\

GitExtUtils.ExternalOperationException: fatal: unrecognized argument: ->
 ---> System.Exception: fatal: unrecognized argument: ->
   --- End of inner exception stack trace ---
   at async Task<string> GitCommands.ExecutableExtensions.GetOutputAsync(IExecutable executable, ArgumentString arguments, byte[] input, Encoding outputEncoding, CommandCache cache, bool stripAnsiEscapeCodes) in C:/projects/gitextensions/GitCommands/Git/ExecutableExtensions.cs:line 147
   at void Microsoft.VisualStudio.Threading.JoinableTask.CompleteOnCurrentThread()
   at IEnumerable<Branch> GitExtensions.Plugins.DeleteUnusedBranches.DeleteUnusedBranchesForm.GetObsoleteBranches(RefreshContext context, string curBranch)+MoveNext() in C:/projects/gitextensions/Plugins/DeleteUnusedBranches/DeleteUnusedBranchesForm.cs:line 106
   at void System.Collections.Generic.List<T>.InsertRange(int index, IEnumerable<T> collection)
   at void GitUI.SortableBindingList<T>.AddRange(IEnumerable<T> items) in C:/projects/gitextensions/GitUI/SortableBindingList.cs:line 20
   at async Task GitExtensions.Plugins.DeleteUnusedBranches.DeleteUnusedBranchesForm.RefreshObsoleteBranchesAsync() in C:/projects/gitextensions/Plugins/DeleteUnusedBranches/DeleteUnusedBranchesForm.cs:line 350
   at async void GitUI.TaskManager.InvokeAndForget(Control control, Func<Task> asyncAction, CancellationToken cancellationToken)+(?) => { } [1] in C:/projects/gitextensions/GitExtUtils/GitUI/TaskManager.cs:line 111
   at async Task GitUI.TaskManager.HandleExceptionsAsync(Func<Task> asyncAction, Func<Exception, Task> handleExceptionAsync) in C:/projects/gitextensions/GitExtUtils/GitUI/TaskManager.cs:line 38

Using defaults from Delete Branches plugin (With Delete Remote ticked)

Steps to reproduce

Use Plugin -> Remove older branches
Search works fine, but when you tick Delete remote branches -> Search again
Then the error appears

Did this work in previous version of GitExtensions?

No response

Diagnostics

No response

Copy link

Potential duplicates:

  • #11357

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

No branches or pull requests

1 participant