Skip to content

[Bug]: git error on commit #1039

@TheDirigible

Description

@TheDirigible

Describe the bug

New install, I'm getting this popup every time it tries to commit:

obsidian-git: Error: undefined
fatal: ambiguous argument 'undefined': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git [...] -- [...]'

at Object.action (plugin:obsidian-git:155:11264)
at Az.exec (plugin:obsidian-git:155:11760)
at eval (plugin:obsidian-git:154:6943)
at new Promise (<anonymous>)
at l0.handleTaskData (plugin:obsidian-git:154:6832)
at l0.attemptRemoteTask (plugin:obsidian-git:154:6488)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async l0.attemptTask (plugin:obsidian-git:154:5970)

It could be because I'm trying to use this without a remote. I only want version control, only commits no pushes.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

Steps to reproduce

just use autocommit

Expected Behavior

No response

Addition context

No response

Operating system

Windows

Installation Method

None

Plugin version

2.37.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions