compose: Don't print trailing (null) if we skip committing

If we skip a commit due to an idential content parent, we shouldn't
print the (null) commit checksum.
This commit is contained in:
Colin Walters committed 2012-03-01 16:08:27 -05:00
1 parent ab76b1b823
commit 9dc86d0f5e
1 file changed
+2 -1
+2 -1
View File
@@ -251,6 +251,8 @@ ostree_builtin_compose (int argc, char **argv, GFile *repo_path, GError **error)
if (!ostree_repo_write_ref (repo, NULL, branch, commit_checksum, error))
goto out;
g_print ("%s\n", commit_checksum);
}
else
{
@@ -263,7 +265,6 @@ ostree_builtin_compose (int argc, char **argv, GFile *repo_path, GError **error)
}
ret = TRUE;
g_print ("%s\n", commit_checksum);
out:
if (in_transaction)
{