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

Faulty installation? #1

Open
pnd10 opened this issue Nov 4, 2012 · 2 comments
Open

Faulty installation? #1

pnd10 opened this issue Nov 4, 2012 · 2 comments

Comments

@pnd10
Copy link

pnd10 commented Nov 4, 2012

On debian wheezy with git 1:1.7.10.4-1, mercurial 2.2.2-1:
I ran easy_install hg-git, which collected version 0.3.3, then ran sudo make install-git-remote-hg
All appeared to install correctly, but when I tried to clone from bitbucket, it failed:

$ git clone hg::https://bitbucket.org/user/repo localname
Cloning into 'localname'...
fatal: Unable to find remote helper for 'hg'
$

The git remotes appear to be in the right place, with the right permissions,so I can't work out why it doesn't work.

@dubiousjim
Copy link
Owner

Hi Peter, so on my machine the git-remote files are in /usr/local/libexec/. Here's what I see:

$ cd /usr/local/libexec; ls -l git-core/git-remote-* yagh
-rwxr-xr-x  109 root  wheel  1226496 Nov 29  2011 git-core/git-remote-ext
-rwxr-xr-x  109 root  wheel  1226496 Nov 29  2011 git-core/git-remote-fd
-rwxr-xr-x    4 root  wheel   540952 Nov 29  2011 git-core/git-remote-ftp
-rwxr-xr-x    4 root  wheel   540952 Nov 29  2011 git-core/git-remote-ftps
lrwxr-xr-x    1 root  wheel       36 Jul  1 23:34 git-core/git-remote-hg -> /usr/local/libexec/yagh/remote-hg.py
-rwxr-xr-x    4 root  wheel   540952 Nov 29  2011 git-core/git-remote-http
-rwxr-xr-x    4 root  wheel   540952 Nov 29  2011 git-core/git-remote-https
-rwxr-xr-x    1 root  wheel     6089 Nov 29  2011 git-core/git-remote-testgit

yagh:
total 55
-rwxr-xr-x  1 root  wheel   3204 Jul  1 23:34 again.py
-rwxr-xr-x  1 root  wheel   5775 Jul  1 23:34 fast-export.sh
-rwxr-xr-x  1 root  wheel  12444 Jul  1 23:34 hg-fast-export.py
-rwxr-xr-x  1 root  wheel   3030 Jul  1 23:34 hg-fast-export.sh
-rwxr-xr-x  1 root  wheel   3302 Jul  1 23:34 hg2git.py
-rwxr-xr-x  1 root  wheel  15371 Jul  1 23:34 remote-hg.py

Is that also what you see? Also, what is the result of which git?

@pnd10
Copy link
Author

pnd10 commented Nov 4, 2012

Aha!
I should have looked a little more around the installation. My git-core files are in /usr/lib/git-core, so the command you issued returns:

$ (cd /usr/local/libexec; ls -l git-core/git-remote-* yagh)
lrwxrwxrwx 1 root root   36 Oct 29 01:05 git-core/git-remote-hg -> /usr/local/libexec/yagh/remote-hg.py

yagh:
total 52
-rwxr-xr-x 1 root root  3204 Oct 29 01:05 again.py
-rwxr-xr-x 1 root root  5775 Oct 29 01:05 fast-export.sh
-rwxr-xr-x 1 root root  3302 Oct 29 01:05 hg2git.py
-rwxr-xr-x 1 root root 12444 Oct 29 01:05 hg-fast-export.py
-rwxr-xr-x 1 root root  3030 Oct 29 01:05 hg-fast-export.sh
-rwxr-xr-x 1 root root 15067 Oct 29 01:05 remote-hg.py
$ which git
/usr/bin/git

for me

Is there a way to tell where git has its git-core files in any given installation? (programmatically, i.e. in the Makefile)

Having fixed the location of the git-remote-hg link, it works. Many thanks for the speedy response.

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

2 participants