Commit 941169bd authored by André Anjos's avatar André Anjos 💬

Merge branch 'fix_no_change_filtering' into 'master'

Fix push candidates filtering.

See merge request !91
parents c05b34fc af965d3c
Pipeline #38930 passed with stages
in 5 minutes and 11 seconds
......@@ -1283,7 +1283,7 @@ def status(webapi, prefix, asset_type):
else:
symbol = ModificationStatus.NO_CHANGES # no changes
if symbol:
if symbol != ModificationStatus.NO_CHANGES:
logger.info(
"[%s] %s/%s (@%s)",
symbol,
......@@ -1407,7 +1407,11 @@ def push(
if not force: # filter again, if no local changes
candidates = collections.OrderedDict(
[(k, v) for k, v in candidates.items() if v]
[
(asset_name, modification_status)
for asset_name, modification_status in candidates.items()
if modification_status != ModificationStatus.NO_CHANGES
]
)
if not candidates:
......
Markdown is supported
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