summaryrefslogtreecommitdiff
path: root/gui/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'gui/gui.c')
-rw-r--r--gui/gui.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gui/gui.c b/gui/gui.c
index e28c603..834bd74 100644
--- a/gui/gui.c
+++ b/gui/gui.c
@@ -386,7 +386,9 @@ static void add_hist(void *user, struct vcs_hist *h,
age++;
}
- progress(1, "processing revision %s", vcs_git_get_rev(h));
+ /* @@@ should free the string returned by vcs_git_get_rev */
+ progress(1, "processing revision %s",
+ h && h->commit ? vcs_git_get_rev(h) : "(uncommitted)");
hist = alloc_type(struct gui_hist);
hist->gui = gui;