Skip to content

BF: git_ignore_check do not overload possible value of stdout/err if present#6937

Merged
yarikoptic merged 1 commit into
datalad:maintfrom
yarikoptic:bf-git_ignore_check
Aug 24, 2022
Merged

BF: git_ignore_check do not overload possible value of stdout/err if present#6937
yarikoptic merged 1 commit into
datalad:maintfrom
yarikoptic:bf-git_ignore_check

Conversation

@yarikoptic
Copy link
Copy Markdown
Member

A little more discussion at #6930 and initially
identified while working on #6932 and being
unable to get CommandError.stdout for matching while using call_git (but works
with _call_git using different code path, which does not have this git_ignore_check).

One of the two locations where this function is used has stdout=None, so this
lead to wiping out of e.stdout even if it was present. I think it was not intentional
but @christian-monch would know better

…present

A little more discussion at datalad#6930 and initially
identified while working on datalad#6932 and being
unable to get CommandError.stdout for matching while using call_git (but works
with _call_git using different code path, which does not have this git_ignore_check).

One of the two locations where this function is used has stdout=None, so this
lead to wiping out of e.stdout even if it was present.  I think it was not intentional
but @christian-monch would know better
@yarikoptic yarikoptic added the semver-patch Increment the patch version when merged label Aug 12, 2022
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 12, 2022

Codecov Report

Merging #6937 (44525c2) into maint (804b3c9) will increase coverage by 0.98%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##            maint    #6937      +/-   ##
==========================================
+ Coverage   89.96%   90.94%   +0.98%     
==========================================
  Files         354      354              
  Lines       46250    46250              
==========================================
+ Hits        41609    42064     +455     
+ Misses       4641     4186     -455     
Impacted Files Coverage Δ
datalad/dataset/gitrepo.py 96.81% <100.00%> (ø)
datalad/_version.py 45.68% <0.00%> (-0.28%) ⬇️
datalad/tests/utils.py 65.10% <0.00%> (+11.03%) ⬆️
datalad/tests/test_tests_utils.py 92.34% <0.00%> (+92.34%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@yarikoptic
Copy link
Copy Markdown
Member Author

woohoo -- it is green! only crawler wants something but I do not think it is related -- I saw it failing in other PRs.

Copy link
Copy Markdown
Contributor

@christian-monch christian-monch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good extension to other use cases, thx

@yarikoptic yarikoptic added the release Create a release when this pr is merged label Aug 24, 2022
@yarikoptic yarikoptic merged commit 9fd66b1 into datalad:maint Aug 24, 2022
@yarikoptic yarikoptic deleted the bf-git_ignore_check branch October 14, 2022 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Create a release when this pr is merged semver-patch Increment the patch version when merged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants