Skip to content

[Bug]: oco hook set is blocking vscode integrated source control #422

Open
@di-sukharev

Description

Opencommit Version

latest

Node Version

20

NPM Version

latest

What OS are you seeing the problem on?

No response

What happened?

i installed the oco hook and my vscode (latest -v) stopped working

Expected Behavior

vscode integrated source control works fine together with oco hook

Current Behavior

it fails.

Possible Solution

No response

Steps to Reproduce

try do this:

  1. oco hook set
  2. commit smth in vscode integrated terminal
  3. get the 2024-10-16 10:26:16.610 [info] env: node: No such file or directory
  4. oco hook unset
  5. all works fine

Relevant log output

2024-10-16 10:26:16.610 [info] > git -c user.useConfigOnly=true commit --quiet --allow-empty-message --file - [18ms]
2024-10-16 10:26:16.610 [info] env: node: No such file or directory
2024-10-16 10:26:16.622 [info] > git config --get-all user.name [11ms]
2024-10-16 10:26:16.634 [info] > git config --get-all user.email [12ms]
2024-10-16 10:26:16.647 [info] > git config --get commit.template [12ms]
2024-10-16 10:26:16.647 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/main refs/remotes/main [11ms]
2024-10-16 10:26:16.662 [info] > git status -z -uall [14ms]
2024-10-16 10:26:16.676 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/main refs/remotes/main [13ms]
2024-10-16 10:26:16.688 [info] > git config --local branch.main.vscode-merge-base [11ms]
2024-10-16 10:26:16.700 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/origin/main refs/remotes/origin/main [11ms]
2024-10-16 10:26:17.729 [info] > git config --get commit.template [14ms]
2024-10-16 10:26:17.729 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/main refs/remotes/main [13ms]
2024-10-16 10:26:17.748 [info] > git status -z -uall [18ms]
2024-10-16 10:26:17.764 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/main refs/remotes/main [15ms]
2024-10-16 10:26:17.777 [info] > git config --local branch.main.vscode-merge-base [12ms]
2024-10-16 10:26:17.790 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) --ignore-case refs/heads/origin/main refs/remotes/origin/main [12ms]

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