diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-11-10 11:10:14 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-11-10 11:10:14 -0800 |
commit | 1a507b9cf75bcb2de2391c584539e0ff202549bf (patch) | |
tree | 50013deffff4af5b2bade8332d1294f1c4ddbcd8 | |
parent | 4751f11224600ab25adb0a200fec55a734bc2936 (diff) | |
parent | f01d74960363736caaf4d98d39555e99bdc72c25 (diff) | |
download | git-1a507b9cf75bcb2de2391c584539e0ff202549bf.tar.gz |
Merge branch 'jn/maint-http-fetch-mingw' into jn/help-everywhere
* jn/maint-http-fetch-mingw:
http-fetch: add missing initialization of argv0_path
merge: do not setup worktree twice
check-ref-format: update usage string
Conflicts:
builtin-check-ref-format.c
-rw-r--r-- | builtin-check-ref-format.c | 6 | ||||
-rw-r--r-- | builtin-merge.c | 1 | ||||
-rw-r--r-- | http-fetch.c | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/builtin-check-ref-format.c b/builtin-check-ref-format.c index 0a576afd0e..b106c65d80 100644 --- a/builtin-check-ref-format.c +++ b/builtin-check-ref-format.c @@ -7,6 +7,10 @@ #include "builtin.h" #include "strbuf.h" +static const char builtin_check_ref_format_usage[] = +"git check-ref-format [--print] <refname>\n" +" or: git check-ref-format --branch <branchname-shorthand>"; + /* * Replace each run of adjacent slashes in src with a single slash, * and write the result to dst. @@ -52,6 +56,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix) exit(0); } if (argc != 2) - usage("git check-ref-format refname"); + usage(builtin_check_ref_format_usage); return !!check_ref_format(argv[1]); } diff --git a/builtin-merge.c b/builtin-merge.c index c69a3051f3..18571387f1 100644 --- a/builtin-merge.c +++ b/builtin-merge.c @@ -843,7 +843,6 @@ int cmd_merge(int argc, const char **argv, const char *prefix) const char *best_strategy = NULL, *wt_strategy = NULL; struct commit_list **remotes = &remoteheads; - setup_work_tree(); if (file_exists(git_path("MERGE_HEAD"))) die("You have not concluded your merge. (MERGE_HEAD exists)"); if (read_cache_unmerged()) diff --git a/http-fetch.c b/http-fetch.c index e8f44babd9..88f7dc8845 100644 --- a/http-fetch.c +++ b/http-fetch.c @@ -1,4 +1,5 @@ #include "cache.h" +#include "exec_cmd.h" #include "walker.h" int main(int argc, const char **argv) @@ -19,8 +20,8 @@ int main(int argc, const char **argv) int get_verbosely = 0; int get_recover = 0; + git_extract_argv0_path(argv[0]); prefix = setup_git_directory(); - git_config(git_default_config, NULL); while (arg < argc && argv[arg][0] == '-') { |