Vinzent03 / obsidian-git

Integrate Git version control with automatic backup and other advanced features in Obsidian.md
MIT License
6.92k stars 296 forks source link

[Bug]: Unable to find refs/remotes/origin/HEAD revision in submodule path 'emrd113_brain' #806

Open naive231 opened 2 weeks ago

naive231 commented 2 weeks ago

Describe the bug

I had confirmed that no errors in git commands, but obsidian-git can't run normally.

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

No response

Steps to reproduce

Each automatic runs, 100% reproducible.

image

Expected Behavior

Successfully add, commit, push and pull operations while running of the plugin.

Addition context

After the bug reproduced, I do diagnostics in BASH:

image

I don't see any error with git commands.

Operating system

macOS

Installation Method

None

Plugin version

2.28.2

naive231 commented 2 weeks ago

I also copied debug info with cmd+shift+i:

{
    "settings": {
        "commitMessage": "vault backup: {{date}}",
        "commitDateFormat": "YYYY-MM-DD HH:mm:ss",
        "autoSaveInterval": 1,
        "autoPushInterval": 0,
        "autoPullInterval": 1,
        "autoPullOnBoot": true,
        "disablePush": false,
        "pullBeforePush": true,
        "disablePopups": true,
        "disablePopupsForNoChanges": false,
        "listChangedFilesInMessageBody": false,
        "showStatusBar": true,
        "updateSubmodules": true,
        "syncMethod": "merge",
        "customMessageOnAutoBackup": false,
        "autoBackupAfterFileChange": true,
        "treeStructure": false,
        "refreshSourceControl": true,
        "basePath": "",
        "differentIntervalCommitAndPush": false,
        "changedFilesInStatusBar": false,
        "showedMobileNotice": true,
        "refreshSourceControlTimer": 7000,
        "showBranchStatusBar": true,
        "setLastSaveToLastCommit": false,
        "submoduleRecurseCheckout": true,
        "gitDir": "",
        "showFileMenu": true,
        "authorInHistoryView": "hide",
        "dateInHistoryView": false,
        "lineAuthor": {
            "show": false,
            "followMovement": "inactive",
            "authorDisplay": "initials",
            "showCommitHash": false,
            "dateTimeFormatOptions": "date",
            "dateTimeFormatCustomString": "YYYY-MM-DD HH:mm",
            "dateTimeTimezone": "viewer-local",
            "coloringMaxAge": "1y",
            "colorNew": {
                "r": 255,
                "g": 150,
                "b": 150
            },
            "colorOld": {
                "r": 120,
                "g": 160,
                "b": 255
            },
            "textColorCss": "var(--text-muted)",
            "ignoreWhitespace": false,
            "gutterSpacingFallbackLength": 5,
            "lastShownAuthorDisplay": "initials",
            "lastShownDateTimeFormatOptions": "date"
        },
        "autoCommitMessage": "vault backup: {{date}}"
    },
    "pluginVersion": "2.28.2"
}