Make pull() take some implicit data as explicit arguments
[gitweb.git] / fetch.c
diff --git a/fetch.c b/fetch.c
index 989d7a47884ec7bac05d329baeb97bdb12b7b22e..3255cc62507e18b7d7da5cbf26a1238402a93314 100644 (file)
--- a/fetch.c
+++ b/fetch.c
@@ -8,9 +8,6 @@
 #include "blob.h"
 #include "refs.h"
 
-const char *write_ref = NULL;
-const char *write_ref_log_details = NULL;
-
 int get_tree = 0;
 int get_history = 0;
 int get_all = 0;
@@ -213,7 +210,8 @@ static int mark_complete(const char *path, const unsigned char *sha1)
        return 0;
 }
 
-int pull(char *target)
+int pull(char *target, const char *write_ref,
+         const char *write_ref_log_details)
 {
        struct ref_lock *lock = NULL;
        unsigned char sha1[20];