report: Show Git commit in a way that works for merges.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2020-10-08 18:10:51 -07:00 committed by Tim Abbott
parent c9fec8f021
commit 82593338ba
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ def report_error(request: HttpRequest, user_profile: UserProfile, message: str=R
try:
version: Optional[str] = subprocess.check_output(
["git", "log", "HEAD^..HEAD", "--oneline"],
["git", "show", "-s", "--oneline"],
universal_newlines=True,
)
except Exception: