Skip to content

Error when stashing changes #2595

@aeschli

Description

@aeschli

Description

When clicking on Stash All Changes in the Staged Changes node of the Source Control viewlet, the operation fails with the following output in the GitLens output channel

[2023-03-22 14:01:42.198] /home/martin/.vscode-insiders/extensions/eamodio.gitlens-13.4.0/dist/gitlens.js:1:46454
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false -c log.showSignature=false log --format=%x3cr%x3e%x20%H -n3 -m -L 2,2:LICENSE.txt
fatal: There is no path LICENSE.txt in the commit

[2023-03-22 14:01:52.157] Push Stash
Error: Command failed: /usr/bin/git -c core.quotepath=false -c color.ui=false stash push --staged -m update license reference --
error: unknown option `staged'
usage: git stash [push [-p|--patch] [-k|--[no-]keep-index] [-q|--quiet]
                 [-u|--include-untracked] [-a|--all] [-m|--message <message>]
                 [--] [<pathspec>...]]

    -k, --keep-index      keep index
    -p, --patch           stash in patch mode
    -q, --quiet           quiet mode
    -u, --include-untracked
                          include untracked files in stash
    -a, --all             include ignore files
    -m, --message <message>
                          stash message
    --pathspec-from-file <file>
                          read pathspec from file
    --pathspec-file-nul   with --pathspec-from-file, pathspec elements are separated with NUL character



GitLens Version

13.4.0

VS Code Version

Version: 1.77.0-insider
Commit: 833ac685084e2028b09753392b82c641c7025bbc
Date: 2023-03-21T05:25:51.950Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Linux x64 5.15.0-67-generic
Sandboxed: Yes

Git Version

2.34.1

Logs, Screenshots, Screen Captures, etc

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions