mirror of
https://github.com/vee1e/mitmproxy.git
synced 2026-09-01 18:27:18 +00:00
Replace git cat-file -t with -e and explain the magic ID
This commit is contained in:
parent
65cce78481
commit
9b6198a1fe
1 changed files with 2 additions and 1 deletions
|
|
@ -21,8 +21,9 @@ def get_dev_version() -> str:
|
|||
here = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
|
||||
try:
|
||||
# Check that we're in the mitmproxy repository: https://github.com/mitmproxy/mitmproxy/issues/3987
|
||||
# cb0e3287090786fad566feb67ac07b8ef361b2c3 is the first mitmproxy commit.
|
||||
subprocess.run(
|
||||
['git', 'cat-file', '-t', 'cb0e3287090786fad566feb67ac07b8ef361b2c3'],
|
||||
['git', 'cat-file', '-e', 'cb0e3287090786fad566feb67ac07b8ef361b2c3'],
|
||||
stdout=subprocess.DEVNULL,
|
||||
stderr=subprocess.DEVNULL,
|
||||
cwd=here,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue