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

Incomplete git installation packaged with cmder v1.2 #521

Closed
glucas opened this issue Jun 5, 2015 · 11 comments
Closed

Incomplete git installation packaged with cmder v1.2 #521

glucas opened this issue Jun 5, 2015 · 11 comments

Comments

@glucas
Copy link
Contributor

glucas commented Jun 5, 2015

Git is only partially functional from a clean installation of Cmder v1.2. Testing from a {cmd} shell, most git commands appear to work fine but git pull fails.

λ git --version
git version 1.9.5.msysgit.1

λ set git
GIT_INSTALL_ROOT=C:\opt\cmder\vendor\msysgit

λ where git
C:\opt\cmder\vendor\msysgit\bin\git.exe

λ git pull
git: 'pull' is not a git command. See 'git --help'.

After a bit of experimentation (see comments on #419), my guess is that some of the files that were recently removed (004761b) from vendor\msysgit\libexec\git-core are still required.

@shytikov
Copy link

shytikov commented Jun 7, 2015

👍 Can confirm this issue. Made new version of cmder so useless.

@edclement
Copy link

👍 Yeah, doing git fetch and then git merge origin/BRANCH is a pain.

@glucas
Copy link
Contributor Author

glucas commented Jun 8, 2015

git svn is another command that doesn't work.

@moloko
Copy link

moloko commented Jun 9, 2015

Well this explains a lot of issues I was getting when I tried 1.2! I thought it was just something I had done wrong trying to remove my main install of msysgit so that only the one version bundled with cmder would be used, but I guess not

@Morten242
Copy link

Adding back all the git-* files to vendor\msysgit\libexec\git-core restores git pull etc. So it seems like that is indeed it.

@Stanzilla
Copy link
Member

004761b was a silly change in general, why remove random exe files when you don't even know what they do? 👎

iki referenced this issue Jul 16, 2015
Using git-$COMMAND is no longer supported anyway.
@iki
Copy link

iki commented Jul 16, 2015

Temporary workaround for #503 and #521 is to download PortableGit-1.9.5-preview20150319.7z (or newer when available) from https://github.com/msysgit/msysgit/releases and extract it to vendor\msysgit.

cd cmder\vendor\msysgit
curl -k -L https://github.com/msysgit/msysgit/releases/download/Git-1.9.5-preview20150319/PortableGit-1.9.5-preview20150319.7z -o git.7z
7z x -aos git.7z

@NiklasRosenstein
Copy link

@iki Thanks, that worked!

@baxtheman
Copy link

@iki Yeah, it works, thank you

@shrayasr
Copy link

@iki: Still works, thanks 👍

@svenluijten
Copy link

@iki Just ran into this issue, thanks for the clear solution! 😄

sonictk pushed a commit to sonictk/cmder that referenced this issue May 21, 2016
Breaks Git: cmderdev#503 cmderdev#521, because git <command> actually uses git-<command>.
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