Merge branch 'gb/split-cmdline-errmsg'
* gb/split-cmdline-errmsg: split_cmdline: Allow caller to access error string
This commit is contained in:
@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user