Skip to content

[bug] fatal: ambiguous argument 'HEAD^{commit}': unknown revision or path not in the working tree. #649

@komapa

Description

@komapa

Describe the bug

[backend] | GitError: HEAD^{commit}
[backend] | fatal: ambiguous argument 'HEAD^{commit}': unknown revision or path not in the working tree.
[backend] | Use '--' to separate paths from revisions, like this:
[backend] | 'git <command> [<revision>...] -- [<file>...]'
[backend] |
[backend] |     at Object.action (file:///app/node_modules/simple-git/dist/esm/index.js:4462:25)
[backend] |     at PluginStore.exec (file:///app/node_modules/simple-git/dist/esm/index.js:4501:25)
[backend] |     at file:///app/node_modules/simple-git/dist/esm/index.js:1369:43
[backend] |     at new Promise (<anonymous>)
[backend] |     at GitExecutorChain.handleTaskData (file:///app/node_modules/simple-git/dist/esm/index.js:1367:16)
[backend] |     at GitExecutorChain.<anonymous> (file:///app/node_modules/simple-git/dist/esm/index.js:1351:44)
[backend] |     at Generator.next (<anonymous>)
[backend] |     at fulfilled (file:///app/node_modules/simple-git/dist/esm/index.js:45:24) {
[backend] |   task: {
[backend] |     commands: [ 'rev-parse', 'HEAD^{commit}' ],
[backend] |     format: 'utf-8',
[backend] |     parser: [Function: parser]
[backend] |   }
[backend] | }

To reproduce

Click on the repositories tab in the UI and let it timeout

Sourcebot deployment information

SourceBot v4.10.0 running in Kubernetes

Additional information

905 repositories

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingworker

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions