Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Add `git svn blame' command
[gitweb.git]
/
builtin-apply.c
diff --git
a/builtin-apply.c
b/builtin-apply.c
index 15432b6782400b556333ee4117c7daaff20412ab..a11b1bbeee9568adbf8a3e32f77d14b132985061 100644
(file)
--- a/
builtin-apply.c
+++ b/
builtin-apply.c
@@
-2746,6
+2746,8
@@
static int apply_patch(int fd, const char *filename, int inaccurate_eof)
static int git_apply_config(const char *var, const char *value)
{
if (!strcmp(var, "apply.whitespace")) {
+ if (!value)
+ return config_error_nonbool(var);
apply_default_whitespace = xstrdup(value);
return 0;
}