submodule--helper credential.* pass into submodule
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest7 patches 14 repliesIn review
- v43 patches 5 repliesSuperseded
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | t/lib-httpd: load mod_unixdt/ | +3 | 0 replies | |
| 2/7 | submodule: don't pass empty string arguments to submodule--helper clonegit-submodule.sh | +2 | 1 reply | |
| 3/7 | submodule: check argc count for git submodule--helper clonebuiltin/ | +4 | 1 reply | |
| 4/7 | submodule: fix submodule--helper clone usagebuiltin/ | +1 | 1 reply | |
| 5/7 | submodule: fix segmentation fault in submodule--helper clonebuiltin/ | +3 | 2 replies | |
| 6/7 | quote: implement sq_quotef()quote.c quote.h | +16 | 0 replies | |
| 7/7 | git: submodule honor -c credential.* from command linebuiltin/ git-submodule.sh t/ +1 more | +133 | 14 replies |
Reviews trailers per patch
4 of 7 patches have a Reviewed-by or Acked-by.
| Patch | Stefan Beller | Jonathan Nieder |
|---|---|---|
| 1/7 | ||
| 2/7 | R-b | |
| 3/7 | R-b | |
| 4/7 | R-b | |
| 5/7 | ||
| 6/7 | ||
| 7/7 | R-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/7] submodule--helper credential.* pass into submodule
From: Jacob Keller <[email protected]>
This series implements ability to pass the credential.* configuration variables from the command line directly into the submodule. The other patches in this series are small fixups noticed along the way.
--> Interdiff between v5 and v6 <--
builtin/submodule--helper.c +9 -8
@@ -140,18 +140,18 @@ static int submodule_config_ok(const char *var)static int sanitize_submodule_config (const char *var,const char *value,void *data) { -struct strbuf quoted =STRBUF_INIT ;struct strbuf *out = data;if (submodule_config_ok (var)) {if (out->len)strbuf_addch (out,' ' ); -sq_quotef (out,"%s=%s" , var, value); +if (value) +sq_quotef (out,"%s=%s" , var, value); +else +sq_quote_buf (out, var); } -strbuf_release ("ed); -return 0 ; }
@@ -235,16 +235,17 @@ static int module_clone(int argc, const char **argv, const char *prefix)const char *const git_submodule_helper_usage[] = {N_ ("git submodule--helper clone [--prefix=<path>] [--quiet] " -"[--reference <repository>] [--name <name>] [--url <url>]" -"[--depth <depth>] [--path <path>]" ), +"[--reference <repository>] [--name <name>] [--depth <depth>] " +"--url <url> --path <path>" ),NULL }; argc =parse_options (argc, argv, prefix, module_clone_options, git_submodule_helper_usage,0 ); -if (argc) -usage (*git_submodule_helper_usage); +if (argc || !url || !path) +usage_with_options (git_submodule_helper_usage, + module_clone_options);strbuf_addf (&sb,"%s/modules/%s" ,get_git_dir (), name); sm_gitdir =strbuf_detach (&sb,NULL );
Jacob Keller (6):
submodule: don't pass empty string arguments to submodule--helper
clone
submodule: check argc count for git submodule--helper clone
submodule: fix submodule--helper clone usage
submodule: fix segmentation fault in submodule--helper clone
quote: implement sq_quotef()
git: submodule honor -c credential.* from command line
Michael J Gruber (1):
t/lib-httpd: load mod_unixd
builtin/submodule--helper.c | 76 ++++++++++++++++++++++++++++++++++++++++++-- git-submodule.sh | 40 ++++++++++++++--------- quote.c | 13 ++++++++ quote.h | 3 ++ t/lib-httpd/apache.conf | 3 ++ t/t5550-http-fetch-dumb.sh | 17 ++++++++++ t/t7412-submodule--helper.sh | 26 +++++++++++++++ 7 files changed, 160 insertions(+), 18 deletions(-) create mode 100755 t/t7412-submodule--helper.sh
Signature · 1 line
2.7.1.429.g45cd78e