summaryrefslogtreecommitdiff
path: root/fetch.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-24 16:51:09 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-24 16:51:09 -0700
commit4feb5e8372923951f16d1ae7c330156a5e4c7797 (patch)
treefc72a05b342f37614e2401fd902b0e0bac39b4e3 /fetch.c
parentMerge branch 'lt/apply' into next (diff)
parentMerge branch 'master' into sp/reflog (diff)
downloadtgif-4feb5e8372923951f16d1ae7c330156a5e4c7797.tar.xz
Merge branch 'sp/reflog' into next
* sp/reflog: fetch.c: remove an unused variable and dead code.
Diffstat (limited to 'fetch.c')
-rw-r--r--fetch.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fetch.c b/fetch.c
index fd57684d8f..ae92d5212e 100644
--- a/fetch.c
+++ b/fetch.c
@@ -10,8 +10,6 @@
const char *write_ref = NULL;
const char *write_ref_log_details = NULL;
-const unsigned char *current_ref = NULL;
-
int get_tree = 0;
int get_history = 0;
int get_all = 0;
@@ -213,16 +211,15 @@ int pull(char *target)
save_commit_buffer = 0;
track_object_refs = 0;
if (write_ref) {
- lock = lock_ref_sha1(write_ref, current_ref, 1);
+ lock = lock_ref_sha1(write_ref, NULL, 0);
if (!lock) {
error("Can't lock ref %s", write_ref);
return -1;
}
}
- if (!get_recover) {
+ if (!get_recover)
for_each_ref(mark_complete);
- }
if (interpret_target(target, sha1)) {
error("Could not interpret %s as something to pull", target);