Comments (9)
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.
It looks like an issue with word splitting.
from git-extras.
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.
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.
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.
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.
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.
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.
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)
- Test(git-authors): add unit test HOT 12
- Create destination folder during `git cp` if it doesn't exist HOT 1
- Allow override temp file location in `git cp` HOT 1
- `find` regex `-iregex '.*\(authors\|contributors\).*'` fails on BSDs
- Time to release 7.1.0 HOT 1
- Refactor(git-authors): support the option `--output` and controlled `--no-email` HOT 1
- Autocompletion after `brew install git-extras` HOT 7
- Discuss: add the python project attribute to git extras repository HOT 6
- git standup recursive search fails if -L missing HOT 1
- It's possible to set up autocompletion after brew install git-extras semi-automatically.
- New git-utimes is broken on Mac HOT 1
- Test(git-browse): unit tests
- Update account security
- Test(git-browse-ci): add unit tests
- Test(git-brv): add unit test
- `git delete-merged-branches` can delete default branch such as `master` HOT 10
- Add a flag to "git delete-squashed-branches" to not abort on first error HOT 3
- Time to release 7.2.0 HOT 3
- [question/feature request] verbose repo summary HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-extras.