]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/clone.c
clone: handle empty config values in -c
[thirdparty/git.git] / builtin / clone.c
index 6c76a6ed66fef567ca06e3e864b37fc3bed151d5..8f45a95c830b2eac67a9eedc93c7af2b576fd0fe 100644 (file)
@@ -755,7 +755,9 @@ static int checkout(int submodule_progress)
 
 static int write_one_config(const char *key, const char *value, void *data)
 {
-       return git_config_set_multivar_gently(key, value ? value : "true", "^$", 0);
+       return git_config_set_multivar_gently(key,
+                                             value ? value : "true",
+                                             CONFIG_REGEX_NONE, 0);
 }
 
 static void write_config(struct string_list *config)