projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor git_tcp_connect() functions a little.
[git.git]
/
http-fetch.c
diff --git
a/http-fetch.c
b/http-fetch.c
index
861644b
..
661c909
100644
(file)
--- a/
http-fetch.c
+++ b/
http-fetch.c
@@
-1223,6
+1223,7
@@
int main(int argc, char **argv)
int rc = 0;
setup_git_directory();
int rc = 0;
setup_git_directory();
+ git_config(git_default_config);
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 't') {
while (arg < argc && argv[arg][0] == '-') {
if (argv[arg][1] == 't') {
@@
-1249,6
+1250,7
@@
int main(int argc, char **argv)
}
commit_id = argv[arg];
url = argv[arg + 1];
}
commit_id = argv[arg];
url = argv[arg + 1];
+ write_ref_log_details = url;
http_init();
http_init();
@@
-1269,10
+1271,10
@@
int main(int argc, char **argv)
if (pull(commit_id))
rc = 1;
if (pull(commit_id))
rc = 1;
- curl_slist_free_all(no_pragma_header);
-
http_cleanup();
http_cleanup();
+ curl_slist_free_all(no_pragma_header);
+
if (corrupt_object_found) {
fprintf(stderr,
"Some loose object were found to be corrupt, but they might be just\n"
if (corrupt_object_found) {
fprintf(stderr,
"Some loose object were found to be corrupt, but they might be just\n"