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

! aliases not working in MinGit busybox builds #5184

Open
1 task done
ibaidev opened this issue Oct 1, 2024 · 1 comment
Open
1 task done

! aliases not working in MinGit busybox builds #5184

ibaidev opened this issue Oct 1, 2024 · 1 comment

Comments

@ibaidev
Copy link

ibaidev commented Oct 1, 2024

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?

    $ git --version --build-options
    git version 2.46.2.windows.1
    cpu: x86_64
    built from commit: 1e20af0e809e08cca5714727dfa0fb50c0c4664d
    sizeof-long: 4
    sizeof-size_t: 8
    shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
    feature: fsmonitor--daemon
    libcurl: 8.10.1
    OpenSSL: OpenSSL 3.2.3 3 Sep 2024
    zlib: 1.3.1
    
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?

    $ cmd.exe /c ver
    Microsoft Windows [Versión 10.0.19044.4529]
    
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

    I am using MinGit with busybox.

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

    cmd

  • What commands did you run to trigger this issue?

    1. Download MinGit-2.46.2-busybox-64-bit.zip
    2. Unzip it.
    3. Using cmd, create the following alias:
    $ git config --global alias.hello "!echo 'Hello World'"
    
  • What did you expect to occur after running these commands?

    $ git hello
    Hello World
    
  • What actually happened instead?

    $ git hello
    -c: applet not found
    
@ibaidev
Copy link
Author

ibaidev commented Oct 1, 2024

It seems that it is trying to use busybox as a shell:

$ set GIT_TRACE=1
$ git hello
16:11:54.778289 exec-cmd.c:243          trace: resolved executable dir: C:/Users/user/Downloads/MinGit-2.46.2-busybox-64-bit/mingw64/bin
16:11:54.793944 git.c:758               trace: exec: git-hello
16:11:54.793944 run-command.c:667       trace: run_command: git-hello
16:11:54.793944 run-command.c:928       trace: start_command: git-hello
16:11:54.793944 run-command.c:667       trace: run_command: 'C:\Users\user\Downloads\MinGit-2.46.2-busybox-64-bit\mingw64\bin\busybox.exe' --help
16:11:54.793944 run-command.c:928       trace: start_command: 'C:\Users\user\Downloads\MinGit-2.46.2-busybox-64-bit\mingw64\bin\busybox.exe' --help
16:11:54.825164 run-command.c:667       trace: run_command: 'echo '\''Hello World'\'''
16:11:54.825164 run-command.c:928       trace: start_command: C:/Users/user/Downloads/MinGit-2.46.2-busybox-64-bit/mingw64/bin/busybox.exe -c 'echo '\''Hello World'\''' 'echo '\''Hello World'\'''
-c: applet not found

and:

$ git var GIT_SHELL_PATH
C:/Users/user/Downloads/MinGit-2.46.2-busybox-64-bit/mingw64/bin/busybox.exe

Shouldn't the shell be something like busybox.exe sh?

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

1 participant