From 72b753c60f7208ee536dc79bd20b3ba93563668b Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Thu, 19 Jan 2017 14:00:50 +0100 Subject: [PATCH] provide git information with --version fixes #1848 --- .gitignore | 1 + docs/install.rst | 2 +- issue_template.md | 2 +- mitmproxy/test/tutils.py | 8 -------- mitmproxy/tools/cmdline.py | 7 +------ mitmproxy/tools/main.py | 5 +++-- mitmproxy/utils/__init__.py | 10 ++++++++++ mitmproxy/utils/bits.py | 2 -- mitmproxy/utils/debug.py | 21 ++++++++++++++++----- test/mitmproxy/addons/test_script.py | 5 +++-- test/mitmproxy/utils/test_debug.py | 8 ++++---- tox.ini | 4 ++-- 12 files changed, 42 insertions(+), 33 deletions(-) diff --git a/.gitignore b/.gitignore index 91caf620a..f1a481cb5 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ bower_components *.map sslkeylogfile.log .tox/ +.python-version diff --git a/docs/install.rst b/docs/install.rst index c10c1e01d..bcf070234 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -140,7 +140,7 @@ If you would like to install mitmproxy directly from the master branch on GitHub or would like to get set up to contribute to the project, install the dependencies as you would for a regular installation from source. Then see the Hacking_ section of the README on GitHub. You can check your system information -by running: ``mitmproxy --sysinfo`` +by running: ``mitmproxy --version`` .. _Hacking: https://github.com/mitmproxy/mitmproxy/blob/master/README.rst#hacking diff --git a/issue_template.md b/issue_template.md index fe123d44c..5c5f95edd 100644 --- a/issue_template.md +++ b/issue_template.md @@ -13,7 +13,7 @@