Commit 45c8b530 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Little fix to getFileGroup

parent 838c016f
...@@ -331,13 +331,13 @@ def getFileGroup(path, ...@@ -331,13 +331,13 @@ def getFileGroup(path,
# The path is unambiguously part of a # The path is unambiguously part of a
# complete file group - resolve it to # complete file group - resolve it to
# the first element of the group # the first element of the group
if fullMatches == 1 and partialMatches == 0: if fullMatches == 1 and partialMatches <= 1:
if fullPaths: return matchedGroupFiles[0] if fullPaths: return matchedGroupFiles[0]
else: return matchedGroups[ 0] else: return matchedGroups[ 0]
# The path appears to be part of # The path appears to be part of
# an incomplete group - this is # an incomplete group - this is
# potentially ambiguuuos, so give # potentially ambiguous, so give
# up (but see the partialMatches # up (but see the partialMatches
# clobber above). # clobber above).
elif partialMatches > 0: elif partialMatches > 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment