Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.cmdline
Commits
af965d3c
Commit
af965d3c
authored
Apr 14, 2020
by
Samuel GAIST
Committed by
Samuel GAIST
Apr 14, 2020
Browse files
[common] Fix candidate filtering.
The filtering was done on the thruthiness of the symbol string content.
parent
c05b34fc
Pipeline
#38929
passed with stage
in 4 minutes and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
beat/cmdline/common.py
View file @
af965d3c
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment