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:
parent
ab76b1b823
commit
9dc86d0f5e
|
|
@ -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))
|
if (!ostree_repo_write_ref (repo, NULL, branch, commit_checksum, error))
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
g_print ("%s\n", commit_checksum);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
@ -263,7 +265,6 @@ ostree_builtin_compose (int argc, char **argv, GFile *repo_path, GError **error)
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
g_print ("%s\n", commit_checksum);
|
|
||||||
out:
|
out:
|
||||||
if (in_transaction)
|
if (in_transaction)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue