]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/pull.c
path.c: migrate global git_path_* to take a repository argument
[thirdparty/git.git] / builtin / pull.c
index e32d6cd5b4c999bc45b961c1387af066c72a823a..d21239cd9f3f0043f393d1cff50d85756e680056 100644 (file)
@@ -351,7 +351,7 @@ static int git_pull_config(const char *var, const char *value, void *cb)
  */
 static void get_merge_heads(struct oid_array *merge_heads)
 {
-       const char *filename = git_path_fetch_head();
+       const char *filename = git_path_fetch_head(the_repository);
        FILE *fp;
        struct strbuf sb = STRBUF_INIT;
        struct object_id oid;
@@ -857,7 +857,7 @@ int cmd_pull(int argc, const char **argv, const char *prefix)
        if (read_cache_unmerged())
                die_resolve_conflict("pull");
 
-       if (file_exists(git_path_merge_head()))
+       if (file_exists(git_path_merge_head(the_repository)))
                die_conclude_merge();
 
        if (get_oid("HEAD", &orig_head))