mirror of https://github.com/zulip/zulip.git
report: Show Git commit in a way that works for merges.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
c9fec8f021
commit
82593338ba
|
@ -105,7 +105,7 @@ def report_error(request: HttpRequest, user_profile: UserProfile, message: str=R
|
||||||
|
|
||||||
try:
|
try:
|
||||||
version: Optional[str] = subprocess.check_output(
|
version: Optional[str] = subprocess.check_output(
|
||||||
["git", "log", "HEAD^..HEAD", "--oneline"],
|
["git", "show", "-s", "--oneline"],
|
||||||
universal_newlines=True,
|
universal_newlines=True,
|
||||||
)
|
)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Reference in New Issue