Skip to content

windows hooks not working in vanilla powershell #691

Closed
@extrawurst

Description

@extrawurst

related #235 #313

it appears that running gitui in vanilla powershell (no git bash, no wsl) fail:

failures:

---- sync::hooks::tests::test_commit_msg_no_block_but_alter stdout ----
thread 'sync::hooks::tests::test_commit_msg_no_block_but_alter' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os 
{ code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:360:57

---- sync::hooks::tests::test_hooks_commit_msg_ok stdout ----
thread 'sync::hooks::tests::test_hooks_commit_msg_ok' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:207:57

---- sync::hooks::tests::test_hooks_commit_msg_reject stdout ----
thread 'sync::hooks::tests::test_hooks_commit_msg_reject' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:306:57

---- sync::hooks::tests::test_hooks_commit_msg_reject_in_subfolder stdout ----
thread 'sync::hooks::tests::test_hooks_commit_msg_reject_in_subfolder' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:336:18  

---- sync::hooks::tests::test_post_commit_hook_reject_in_subfolder stdout ----
thread 'sync::hooks::tests::test_post_commit_hook_reject_in_subfolder' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:382:60  

---- sync::hooks::tests::test_pre_commit_fail_py stdout ----
thread 'sync::hooks::tests::test_pre_commit_fail_py' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, 
kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:287:47

---- sync::hooks::tests::test_pre_commit_fail_sh stdout ----
thread 'sync::hooks::tests::test_pre_commit_fail_sh' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, 
kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:241:47

---- sync::hooks::tests::test_pre_commit_py stdout ----
thread 'sync::hooks::tests::test_pre_commit_py' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:264:47

---- sync::hooks::tests::test_pre_commit_sh stdout ----
thread 'sync::hooks::tests::test_pre_commit_sh' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "The system cannot find the file specified." })', asyncgit\src\sync\hooks.rs:225:47


failures:
    sync::hooks::tests::test_commit_msg_no_block_but_alter
    sync::hooks::tests::test_hooks_commit_msg_ok
    sync::hooks::tests::test_hooks_commit_msg_reject
    sync::hooks::tests::test_hooks_commit_msg_reject_in_subfolder
    sync::hooks::tests::test_post_commit_hook_reject_in_subfolder
    sync::hooks::tests::test_pre_commit_fail_py
    sync::hooks::tests::test_pre_commit_fail_sh
    sync::hooks::tests::test_pre_commit_py
    sync::hooks::tests::test_pre_commit_sh

test result: FAILED. 113 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 59.96s

Activity

stale

stale commented on Aug 8, 2021

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @extrawurst

        Issue actions

          windows hooks not working in vanilla powershell · Issue #691 · gitui-org/gitui