X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=local-fetch.c;h=a05ac16cd03df8a07fd51b3b6df7735141152065;hb=5f468c4805c785115cd9c5f6a8f299f23a9034f5;hp=fa9e697fd3fa8fe305184f78fdf500532c14ab63;hpb=9cac9d368934f68e75810df95211a6522d4d139e;p=git.git diff --git a/local-fetch.c b/local-fetch.c index fa9e697fd..a05ac16cd 100644 --- a/local-fetch.c +++ b/local-fetch.c @@ -194,9 +194,9 @@ int fetch_ref(char *ref, unsigned char *sha1) } static const char local_pull_usage[] = -"git-local-fetch [-c] [-t] [-a] [-d] [-v] [-w filename] [--recover] [-l] [-s] [-n] commit-id path"; +"git-local-fetch [-c] [-t] [-a] [-v] [-w filename] [--recover] [-l] [-s] [-n] commit-id path"; -/* +/* * By default we only use file copy. * If -l is specified, a hard link is attempted. * If -s is specified, then a symlink is attempted. @@ -208,6 +208,7 @@ int main(int argc, char **argv) int arg = 1; setup_git_directory(); + git_config(git_default_config); while (arg < argc && argv[arg][0] == '-') { if (argv[arg][1] == 't') @@ -239,6 +240,7 @@ int main(int argc, char **argv) usage(local_pull_usage); commit_id = argv[arg]; path = argv[arg + 1]; + write_ref_log_details = path; if (pull(commit_id)) return 1;