Merge branch 'ps/refs-without-the-repository' into ps/refs-without-the-repository-updates
* ps/refs-without-the-repository: refs: remove functions without ref store cocci: apply rules to rewrite callers of "refs" interfaces cocci: introduce rules to transform "refs" to pass ref store refs: add `exclude_patterns` parameter to `for_each_fullref_in()` refs: introduce missing functions that accept a `struct ref_store`
This commit is contained in:
@ -682,7 +682,7 @@ static int do_reupdate(const char **paths,
|
||||
PATHSPEC_PREFER_CWD,
|
||||
prefix, paths);
|
||||
|
||||
if (read_ref("HEAD", &head_oid))
|
||||
if (refs_read_ref(get_main_ref_store(the_repository), "HEAD", &head_oid))
|
||||
/* If there is no HEAD, that means it is an initial
|
||||
* commit. Update everything in the index.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user