We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fa43f commit 0f82f69Copy full SHA for 0f82f69
sentry_sdk/utils.py
@@ -2,6 +2,7 @@
2
import linecache
3
import logging
4
import os
5
+import platform
6
import sys
7
import threading
8
import subprocess
@@ -60,11 +61,17 @@ def get_default_release():
60
61
if release:
62
return release
63
64
+ startupinfo = None
65
+ if platform.system() == "Windows":
66
+ startupinfo = subprocess.STARTUPINFO()
67
+ startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
68
+
69
with open(os.path.devnull, "w+") as null:
70
try:
71
release = (
72
subprocess.Popen(
73
["git", "rev-parse", "HEAD"],
74
+ startupinfo=startupinfo,
75
stdout=subprocess.PIPE,
76
stderr=null,
77
stdin=null,
0 commit comments