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 2012-02-24 21:35:31 -05:00
parent ab76b1b823
commit 9dc86d0f5e

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)
{