Skip to content

Transcrypt Fails with 'Not a Git Repository' in Git Bash on Windows #519

Description

@gabriel-stackhouse

Describe the bug

When using YADM in Windows via Git Bash (MINGW64), attempting to initialize Transcrypt in a YADM repository using yadm transcrypt results in the following error:

name@host MINGW64 ~
$ yadm --version
bash version 5.2.37(1)-release
 git version 2.47.1.windows.1
yadm version 3.3.0

$ yadm status
On branch main
nothing to commit (use -u to show untracked files)

name@host MINGW64 ~
$ transcrypt --version
transcrypt 2.3.0

name@host MINGW64 ~
$ yadm transcrypt
fatal: --local can only be used inside a git repository
transcrypt: you are not currently in a git repository; did you forget to run "git init"?

This issue does not occur when using YADM and Transcrypt in WSL. However, I would prefer to use Git Bash for consistency and to avoid maintaining two YADM repositories in one OS.

To reproduce

  1. Download yadm for Windows and add the binary's directory to PATH.
  2. Download the Transcrypt latest release and place the binary in PATH.
  3. Initialize a YADM repository with yadm init.
  4. Run yadm transcrypt in Git Bash.

Activity

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

      Issue actions