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

RFC: Use git config to specify additional options for ots-git-wrapper.sh #19

Open
drizzt opened this issue Oct 19, 2016 · 1 comment
Open

Comments

@drizzt
Copy link
Contributor

drizzt commented Oct 19, 2016

Hi,
what do you think about adding a custom git config (like gpg.ots-args) to specify additional options for ots-git-wrapper.sh (like --socks5-proxy)?

For example:
git config --global gpg.ots-args "--socks5-proxy 127.0.0.1:9050"

and then, with a slightly patch of ots-git-wrapper.sh:

diff --git a/ots-git-gpg-wrapper.sh b/ots-git-gpg-wrapper.sh
index 73d61bb5..97d42aaf 100755
--- a/ots-git-gpg-wrapper.sh
+++ b/ots-git-gpg-wrapper.sh
@@ -5,4 +5,4 @@
 # Required because git's gpg.program option doesn't allow you to set command
 # line options; see the doc/git-integration.md

-"`dirname "$0"`"/ots-git-gpg-wrapper --gpg-program "`which gpg`" -- "$@"
+"`dirname "$0"`"/ots-git-gpg-wrapper --gpg-program "`which gpg`" `git config gpg.ots-args` -- "$@"
@petertodd
Copy link
Member

Sorry for the wait! Been travelling.

That's a good idea! I'll give it a try after I get back next week.

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

No branches or pull requests

2 participants