From fd32d4dfaafe45c9a7fd4099423de36dd6600ef1 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 6 Dec 2007 12:27:24 -0800 Subject: fix for bug 2522: don't show/return error if there's nothing to commit. --- src/commit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/commit.c b/src/commit.c index 4820094..3fa77c5 100644 --- a/src/commit.c +++ b/src/commit.c @@ -274,7 +274,7 @@ int main(int argc, char **argv) my_free(mod); if (st < 0 ) { fprintf(out_stream, "No configuration changes to commit\n"); - bye("No configuration changes to commit\n"); + return 0; } if (get_config_lock() == -1) { -- cgit v1.2.3