Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Anders Kaseorg82593338ba54
diff --git a/zerver/views/report.py b/zerver/views/report.py
index ec371d38c8d..05c2edca15b 100644
--- a/zerver/views/report.py
+++ b/zerver/views/report.py
@@ -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: