Git Product home page Git Product logo

Comments (9)

spacewander avatar spacewander commented on June 12, 2024

Interesting. I am not familiar with mingw environment. Maybe you can add set -x in the script, and run the displayed command manually to see which part is broken?

from git-extras.

hyperupcall avatar hyperupcall commented on June 12, 2024

It looks like an issue with word splitting.

from git-extras.

Dominiquini avatar Dominiquini commented on June 12, 2024

Interesting. I am not familiar with mingw environment. Maybe you can add set -x in the script, and run the displayed command manually to see which part is broken?

This is the output:

>>>git extras update
+ unset -v GREP_OPTIONS
+ VERSION=7.0.0
+ INSTALL_SCRIPT=https://raw.githubusercontent.com/tj/git-extras/master/install.sh
+ case "$1" in
++ uname -s
+ platform=MINGW64_NT-10.0-19045
+ '[' MINGW64_N = CYGWIN_NT ']'
+ '[' MINGW = MINGW ']'
+ updateForWindows
++ command -v git-extras
+ local bin=/mingw64/bin/git-extras
+ local prefix=/mingw64
+ local 'orig=/f/Videos/ZZZ - Others'
+ cd /tmp
+ rm -rf ./git-extras
+ echo 'Setting up '\''git-extras'\''....'
Setting up 'git-extras'....
+ git clone https://github.com/tj/git-extras.git
+ cd git-extras
+++ git rev-list --tags --max-count=1
++ git describe --tags d7f0fcc5460af875dd919a06c170503f83bf57d3
+ git checkout 7.0.0
+ ./install.cmd /mingw64
'C:\Users\Rafael' is not recognized as an internal or external command,
operable program or batch file.
+ rm -rf /tmp/git-extras

from git-extras.

Dominiquini avatar Dominiquini commented on June 12, 2024

If I remove the "$prefix" from the "./install.cmd" command line (I don't need specify anything when I manually installed git-extras), this is the output:

>>>git extras update
+ unset -v GREP_OPTIONS
+ VERSION=7.0.0
+ INSTALL_SCRIPT=https://raw.githubusercontent.com/tj/git-extras/master/install.sh
+ case "$1" in
++ uname -s
+ platform=MINGW64_NT-10.0-19045
+ '[' MINGW64_N = CYGWIN_NT ']'
+ '[' MINGW = MINGW ']'
+ updateForWindows
++ command -v git-extras
+ local bin=/mingw64/bin/git-extras
+ local prefix=/mingw64
+ local 'orig=/f/Videos/ZZZ - Others'
+ cd /tmp
+ rm -rf ./git-extras
+ echo 'Setting up '\''git-extras'\''....'
Setting up 'git-extras'....
+ git clone https://github.com/tj/git-extras.git
+ cd git-extras
+++ git rev-list --tags --max-count=1
++ git describe --tags d7f0fcc5460af875dd919a06c170503f83bf57d3
+ git checkout 7.0.0
+ ./install.cmd
No mingw64 folder found in C:\Program Files\Git\mingw64\libexec.

Please supply a proper "Git for Windows 2.x" install path:
"install.cmd c:\[git-install-path]"
+ cd '/f/Videos/ZZZ - Others'
++ git extras --version
+ unset -v GREP_OPTIONS
+ VERSION=7.0.0
+ INSTALL_SCRIPT=https://raw.githubusercontent.com/tj/git-extras/master/install.sh
+ case "$1" in
+ echo 7.0.0
+ exit 0
+ echo '... updated git-extras 7.0.0 -> 7.0.0'
... updated git-extras 7.0.0 -> 7.0.0
+ rm -rf /tmp/git-extras

from git-extras.

Dominiquini avatar Dominiquini commented on June 12, 2024

This is the directory that the script needed to copy the files: "C:\Program Files\Git\mingw64\bin"!

Running the "install.cmd" on the powershell, it works fine! But running using "git extras update" not!

Thanks.

from git-extras.

Dominiquini avatar Dominiquini commented on June 12, 2024

I noticed another thing:

Running the install script manually, it try to copy the files on the path "C:\Program Files\Git\mingw64\bin"
But using the update method, it try to copy the files on the path "C:\Program Files\Git\mingw64\libexec"

Thanks

from git-extras.

spacewander avatar spacewander commented on June 12, 2024

So the problem is inside the cmd script.
I am not familiar with the cmd syntax. As @hyperupcall suggested, maybe there is a space after 'C:\Users\Rafael'? And the powershell environment can handle word splitting smartly.

from git-extras.

Dominiquini avatar Dominiquini commented on June 12, 2024

So the problem is inside the cmd script. I am not familiar with the cmd syntax. As @hyperupcall suggested, maybe there is a space after 'C:\Users\Rafael'?

Yes, my username is "Rafael Dominiquini"

And the powershell environment can handle word splitting smartly.

Probably! Running this script (install.cmd) on Powershell installs the application correctly!

Thanks

from git-extras.

hyperupcall avatar hyperupcall commented on June 12, 2024

I was able to reproduce it, but after fiddling trying to fix it, I get a different error:

C:\Program Files\Git\mingw64\bin\git-extras: line 23: ::::::::::::::: command not found
C:\Program Files\Git\mingw64\bin\git-extras: line 24: C:cygwin64tmpgit-extras\bingit-extras: No such file or directory
C:\Program Files\Git\mingw64\bin\git-extras: line 25: ::::::::::::::: command not found
Setting up 'git-extras'....
Using git install path "C:/Program Files/Git/mingw64" as PREFIX, please make sure it's really a
path to the mingw64 directory...

Installing to C:/Program Files/Git/mingw64

Directory for binaries ["C:/Program Files/Git/mingw64\bin"] is not writeable by install.cmd.

You probably need to run install.cmd from an admin prompt.
C:\Program Files\Git\mingw64\bin\git-extras: line 23: ::::::::::::::: command not found
C:\Program Files\Git\mingw64\bin\git-extras: line 24: C:cygwin64tmpgit-extras\bingit-extras: No such file or directory
C:\Program Files\Git\mingw64\bin\git-extras: line 25: ::::::::::::::: command not found
... updated git-extras 7.1.0 -> 7.1.0

I ran this in Windows with both PowerShell and cmd, and both worked. But, the issue only popped up when I was using Cygwin. So I think the issue might be Cygwin-related

from git-extras.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.