diff options
author | Jed Brown <jed@59A2.org> | 2014-03-12 12:01:32 -0600 |
---|---|---|
committer | Jed Brown <jed@59A2.org> | 2014-03-12 12:01:32 -0600 |
commit | 0d9b0eb7e2aa2d3a4f1e0081f0a79f10ca8c6c95 (patch) | |
tree | f33e5e43a10496eb25547f6eb526e05b2a195b7d | |
parent | 817c2b0a91d83be9ba43b9f796f78ad535142d00 (diff) | |
download | git-fat-0d9b0eb7e2aa2d3a4f1e0081f0a79f10ca8c6c95.tar.gz |
pull: fix --all to avoid limiting by patterns in current treejed/pull-all
Regression introduced in:
commit c23422388b975f13867457c86c78361dfdf8036e
Author: Tomas Herman <tomas.herman@wikidi.com>
Date: Tue Apr 23 11:59:38 2013 +0200
Added support for pulling only a subset of files.
Reported-by: Nikola Kovacs <nikola.kovacs@gmail.com>
-rwxr-xr-x | git-fat | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -389,6 +389,8 @@ class GitFat(object): def filter_objects(self, refargs, patterns): files = self.referenced_objects(**refargs) - self.catalog_objects() + if refargs.get('all'): # Currently ignores patterns; can we efficiently do both? + return files orphans_matched = list(self.orphan_files(patterns)) orphans_objects = set(map(lambda x: x[0], orphans_matched)) return files & orphans_objects |