mirror of
https://github.com/ostreedev/ostree.git
synced 2025-01-24 06:04:16 +03:00
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))
|
||||
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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user