summaryrefslogtreecommitdiff
path: root/Modules/getbuildinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/getbuildinfo.c')
-rw-r--r--Modules/getbuildinfo.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/getbuildinfo.c b/Modules/getbuildinfo.c
index 5f941a26e1..7cb7397a22 100644
--- a/Modules/getbuildinfo.c
+++ b/Modules/getbuildinfo.c
@@ -40,8 +40,9 @@ Py_GetBuildInfo(void)
const char *revision = _Py_gitversion();
const char *sep = *revision ? ":" : "";
const char *gitid = _Py_gitidentifier();
- if (!(*gitid))
- gitid = "default";
+ if (!(*gitid)) {
+ gitid = "main";
+ }
PyOS_snprintf(buildinfo, sizeof(buildinfo),
"%s%s%s, %.20s, %.9s", gitid, sep, revision,
DATE, TIME);