aboutsummaryrefslogtreecommitdiffstats
path: root/negotiator/default.c
diff options
context:
space:
mode:
Diffstat (limited to 'negotiator/default.c')
-rw-r--r--negotiator/default.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/negotiator/default.c b/negotiator/default.c
index 9a5b696327..e3fa5c3324 100644
--- a/negotiator/default.c
+++ b/negotiator/default.c
@@ -1,3 +1,5 @@
+#define USE_THE_REPOSITORY_VARIABLE
+
#include "git-compat-util.h"
#include "default.h"
#include "../commit.h"
@@ -192,6 +194,7 @@ void default_negotiator_init(struct fetch_negotiator *negotiator)
ns->rev_list.compare = compare_commits_by_commit_date;
if (marked)
- for_each_ref(clear_marks, NULL);
+ refs_for_each_ref(get_main_ref_store(the_repository),
+ clear_marks, NULL);
marked = 1;
}