Skip to content

tree_blob: return blob contents for blob and exec (#56) #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 31, 2020

Conversation

bharatnc
Copy link
Contributor

This PR adds an or conditional to return blob content if a file is an
executable (entry mode 0100755). Prior to this Blob func only returned
file contents if a file was of type blob (entry mode 010644). This in a
resulted error to be returned for certain files that were for instance
bash scripts which had the executable mode bit set.

This PR adds an `or` conditional to return blob content if a file is an
executable (entry mode 0100755). Prior to this `Blob` func only returned
file contents if a file was of type blob (entry mode 010644). This in a
resulted error to be returned for certain files that were for instance
bash scripts which had the executable mode bit set.
@codecov
Copy link

codecov bot commented Mar 31, 2020

Codecov Report

Merging #57 into master will not change coverage by %.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master      #57   +/-   ##
=======================================
  Coverage   83.58%   83.58%           
=======================================
  Files          24       24           
  Lines        1998     1998           
=======================================
  Hits         1670     1670           
  Misses        236      236           
  Partials       92       92           
Impacted Files Coverage Δ
tree_blob.go 72.41% <100.00%> (ø)

@unknwon
Copy link
Member

unknwon commented Mar 31, 2020

Thank you!

@unknwon unknwon changed the title return blob contents for blob and exec (#56) tree_blob: return blob contents for blob and exec (#56) Mar 31, 2020
@unknwon unknwon merged commit b77b62c into gogs:master Mar 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants