Skip to content
Browse files

Remove env var checking behavior for use_glob.

There was no env var and I actually don't think it makes
sense for this to be globally true/false.

Re #869, #812
  • Loading branch information...
1 parent ae8e39b commit 413234a2bd466e34e7179bde5a7c2e019cb586b1 @bitprophet bitprophet committed Apr 1, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 fabric/operations.py
View
4 fabric/operations.py
@@ -251,7 +251,7 @@ def prompt(text, key=None, default='', validate=None):
@needs_host
def put(local_path=None, remote_path=None, use_sudo=False,
- mirror_local_mode=False, mode=None, use_glob=None):
+ mirror_local_mode=False, mode=None, use_glob=True):
"""
Upload one or more files to a remote host.
@@ -364,7 +364,7 @@ def put(local_path=None, remote_path=None, use_sudo=False,
if not os.path.isabs(local_path) and env.lcwd:
local_path = os.path.join(env.lcwd, local_path)
- if use_glob or (use_glob is None and env.get('use_glob', True)):
+ if use_glob:
# Glob local path
names = glob(local_path)
else:

0 comments on commit 413234a

Please sign in to comment.
Something went wrong with that request. Please try again.