Re: [PATCH] remote-hg: fix path when cloning with tilde expansion
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- Aug 5, 2013, 20:32 UTC
- Message-ID
- <CALWbr2zNEzcEdEGYpZYfsYSXyJyjV4J23O6=cqYD7RDJMXOxRw@mail.gmail.com>
- In-Reply-To
- <CAMP44s1Jqao0YvBSh18t1C2LwAF4_u2GaTNx1RwdW+pmCFcxvQ@mail.gmail.com>
On Mon, Aug 5, 2013 at 10:30 PM, Felipe Contreras <felipe.contreras@gmail.com> wrote:
Show 6 quoted lines
> On Mon, Aug 5, 2013 at 3:12 PM, Antoine Pelisse <apelisse@gmail.com> wrote: >> $ 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/)
I guess it is, as long as it looks like a path:
$ echo ~
/home/myuser
$ echo hg::~
hg::~