diff options
-rw-r--r-- | app/flatpak-builtins-update.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/flatpak-builtins-update.c b/app/flatpak-builtins-update.c index 3da7a067..1080f2b0 100644 --- a/app/flatpak-builtins-update.c +++ b/app/flatpak-builtins-update.c @@ -115,6 +115,10 @@ flatpak_builtin_update (int argc, n_prefs = 1; } + /* It doesn't make sense to use the same commit for more than one thing */ + if (opt_commit && n_prefs != 1) + return usage_error (context, _("With --commit, only one REF may be specified"), error); + transactions = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); /* Walk through the array backwards so we can safely remove */ |