Skip to content
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

Add a ${username} variable for use in targets #11

Merged
merged 1 commit into from
Jun 13, 2019

Conversation

somasis
Copy link
Contributor

@somasis somasis commented Apr 14, 2019

In git-send-email, it requests a credential with a host and a username.
Normally this would be fine, but it can cause issues if you have
multiple email accounts on a single host (ex. multiple gmail accounts;
pass-git-helper sees them all as host=smtp.gmail.com:587). Having a
${username} (the variable matching the username requested) fixes this.

@codecov-io
Copy link

codecov-io commented Apr 14, 2019

Codecov Report

Merging #11 into master will increase coverage by 0.14%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #11      +/-   ##
==========================================
+ Coverage    87.8%   87.95%   +0.14%     
==========================================
  Files           1        1              
  Lines         164      166       +2     
  Branches       19       20       +1     
==========================================
+ Hits          144      146       +2     
  Misses         14       14              
  Partials        6        6
Impacted Files Coverage Δ
passgithelper.py 87.95% <100%> (+0.14%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f84376d...4ea7262. Read the comment docs.

passgithelper.py Outdated Show resolved Hide resolved
@languitar
Copy link
Owner

Thanks for the PR. I wonder whether there are other tools that also set this, but anyways. I've added a single comment to the PR. After resolving that issue, I'm fine with merging this.

In git-send-email, it requests a credential with a host and a username.
Normally this would be fine, but it can cause issues if you have
multiple email accounts on a single host (ex. multiple gmail accounts;
pass-git-helper sees them all as host=smtp.gmail.com:587). Having a
${username} (the variable matching the username requested) fixes this.
@somasis
Copy link
Contributor Author

somasis commented May 6, 2019

I've resolved it, I believe I left that duplicate conditional in while I was testing things. I've amended the commit.

@languitar languitar merged commit e7883a4 into languitar:master Jun 13, 2019
@languitar
Copy link
Owner

sorry for the long delay. finally merged

@languitar languitar added this to the 1.1 milestone Jun 13, 2019
@somasis
Copy link
Contributor Author

somasis commented Jun 13, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants