diff options
Diffstat (limited to 'refs')
-rw-r--r-- | refs/files-backend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c index 9676cd32e4..b62f374f9c 100644 --- a/refs/files-backend.c +++ b/refs/files-backend.c @@ -3163,7 +3163,7 @@ int set_worktree_head_symref(const char *gitdir, const char *target, const char * backends. This function needs to die. */ struct files_ref_store *refs = - files_downcast(get_ref_store(NULL), 0, "set_head_symref"); + files_downcast(get_main_ref_store(), 0, "set_head_symref"); static struct lock_file head_lock; struct ref_lock *lock; |