git-commit-vandalism/contrib/remote-helpers
Antoine Pelisse 33f66b25e1 remote-hg: fix path when cloning with tilde expansion
The current code fixes the path to make it absolute when cloning, but
doesn't consider tilde expansion, so that scenario fails throwing an
exception because /home/myuser/~/my/repository doesn't exists:

    $ git clone hg::~/my/repository && cd repository && git fetch

Expand the tilde when checking if the path is absolute, so that we don't
fix a path that doesn't need to be.

Signed-off-by: Antoine Pelisse <apelisse@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-08-09 15:33:02 -07:00
..
git-remote-bzr Merge branch 'fc/remote-bzr' 2013-06-11 13:30:26 -07:00
git-remote-hg remote-hg: fix path when cloning with tilde expansion 2013-08-09 15:33:02 -07:00
Makefile remote-helpers: fix the run of all tests 2013-04-04 09:35:20 -07:00
test-bzr.sh remote-bzr: simplify test checks 2013-05-28 07:59:31 -07:00
test-hg-bidi.sh remote-hg: always point HEAD to master 2013-05-28 07:59:30 -07:00
test-hg-hg-git.sh remote-hg: always point HEAD to master 2013-05-28 07:59:30 -07:00
test-hg.sh remote-hg: add support for --force 2013-05-28 08:02:25 -07:00