status/commit: make sure --porcelain is not affected by user-facing config
[gitweb.git] / wt-status.c
index bf84a86ee3d6b136bd83115f0bf15a55835817fc..6778755d76a681abe24449f16513443e9ec992bc 100644 (file)
@@ -127,6 +127,7 @@ void wt_status_prepare(struct wt_status *s)
        s->change.strdup_strings = 1;
        s->untracked.strdup_strings = 1;
        s->ignored.strdup_strings = 1;
+       s->show_branch = -1;  /* unspecified */
 }
 
 static void wt_status_print_unmerged_header(struct wt_status *s)