From: Felipe Contreras Date: Mon, 05 Aug 2013 20:30:04 GMT Subject: Re: [PATCH] remote-hg: fix path when cloning with tilde expansion Message-ID: In-Reply-To: <1375733541-9099-1-git-send-email-apelisse@gmail.com> On Mon, Aug 5, 2013 at 3:12 PM, Antoine Pelisse wrote: > 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 > > Fix that by using python os.path.expanduser method. Shouldn't that be the job of the shell? (s/~/$HOME/) -- Felipe Contreras