[hacktree] repo: Allow empty commit bodies
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hacktree] repo: Allow empty commit bodies
- Date: Sat, 15 Oct 2011 05:23:31 +0000 (UTC)
commit 6f1b8803777108c89aaf014b28afa9fbd693c58a
Author: Colin Walters <walters verbum org>
Date: Sat Oct 15 00:57:13 2011 -0400
repo: Allow empty commit bodies
src/libhacktree/hacktree-repo.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/libhacktree/hacktree-repo.c b/src/libhacktree/hacktree-repo.c
index 57fb466..3de81c3 100644
--- a/src/libhacktree/hacktree-repo.c
+++ b/src/libhacktree/hacktree-repo.c
@@ -1228,7 +1228,7 @@ hacktree_repo_commit (HacktreeRepo *self,
HACKTREE_COMMIT_VERSION,
create_empty_gvariant_dict (),
priv->current_head ? priv->current_head : "",
- subject, body,
+ subject, body ? body : "",
g_date_time_to_unix (now) / G_TIME_SPAN_SECOND,
g_checksum_get_string (root_checksum));
if (!import_gvariant_object (self, HACKTREE_SERIALIZED_COMMIT_VARIANT,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]