Merge branch 'gb/split-cmdline-errmsg' into gb/shell-ext
[gitweb.git] / builtin / merge.c
index 37ce4f589f6582abf0d1ef5bd263f590a16853d5..b48826372f94e8dc48a37c3ff5ea4c727788f92e 100644 (file)
@@ -486,7 +486,8 @@ static int git_merge_config(const char *k, const char *v, void *cb)
                buf = xstrdup(v);
                argc = split_cmdline(buf, &argv);
                if (argc < 0)
-                       die("Bad branch.%s.mergeoptions string", branch);
+                       die("Bad branch.%s.mergeoptions string: %s", branch,
+                           split_cmdline_strerror(argc));
                argv = xrealloc(argv, sizeof(*argv) * (argc + 2));
                memmove(argv + 1, argv, sizeof(*argv) * (argc + 1));
                argc++;