Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
put() not expanding tildes correctly #323
For reference, his local system is OS X 10.6 and his remote is Ubuntu 10.04.
Originally submitted by Jeff Forcier (bitprophet) on 2011-03-18 at 07:37pm EDT
Daleep Sall (daleep) posted:
I have also noticed that when I do:
with lcd('~/local_path/'): put('local_file', 'remote_path')
I get the error:
Traceback (most recent call last): File "/usr/local/lib/python2.6/dist-packages/fabric/main.py", line 537, in main commands[name](*args, **kwargs) File "fabfile.py", line 35, in make_code_live put('local_file', 'remote_path') File "/usr/local/lib/python2.6/dist-packages/fabric/network.py", line 304, in host_prompting_wrapper return func(*args, **kwargs) File "/usr/local/lib/python2.6/dist-packages/fabric/operations.py", line 403, in put raise ValueError(err) ValueError: '~/local_path/local_file' is not a valid local path or glob.
Is this a related issue? Thanks.
on 2011-05-13 at 08:40am EDT
Piet Delport (pjdelport) posted:
It looks like this regression happened in commit:69634775264786ec765375db87fa0b0eac128285, which deleted the following lines:
if remote_path.startswith('~'): remote_path = remote_path.replace('~', home, 1)
on 2011-07-22 at 06:42am EDT