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

[Bug]: Cant push #171

Closed
dejwi opened this issue Jan 26, 2022 · 5 comments
Closed

[Bug]: Cant push #171

dejwi opened this issue Jan 26, 2022 · 5 comments

Comments

@dejwi
Copy link

dejwi commented Jan 26, 2022

Describe the bug

when i try to push changes i get this error in console | auto push doesnt work too
image

commits and everything else works

Error: fatal: ambiguous
argument 'main': both revision and
filename

Steps to reproduce

manual push

Operating system

Linux

@gassparr
Copy link

gassparr commented Jan 28, 2022

yep, me too i get this
image

In no linux distro i can manage to push changes to git. On windows it does it no problem.

@dejwi
Copy link
Author

dejwi commented Jan 28, 2022

Issue: folder was named 'main', fixed with rename

@dejwi dejwi closed this as completed Jan 28, 2022
@illarionov
Copy link

Also stumbled upon this bug.
I think it would be nice to fix it in the repository so that you don't have to use any workarounds.

Error message:

Uncaught (in promise) Error: fatal: ambiguous argument 'main': both revision and filename
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

    at Object.action (plugin:obsidian-git:23833:25)
    at PluginStore.exec (plugin:obsidian-git:23858:25)
    at eval (plugin:obsidian-git:21445:43)
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (plugin:obsidian-git:21443:16)
    at GitExecutorChain.eval (plugin:obsidian-git:21427:44)
    at Generator.next (<anonymous>)
    at fulfilled (plugin:obsidian-git:20276:24)

Root of the repository with Obsidian vaults:

$ git branch -a
* main
  remotes/origin/main

$ tree -aL 1
.
├── .git
├── main
└── README.md

Vinzent03 added a commit that referenced this issue Sep 29, 2022
@Vinzent03
Copy link
Owner

@illarionov Should be fixed now!

@illarionov
Copy link

It works, thank you!

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

No branches or pull requests

4 participants