]> git.ipfire.org Git - thirdparty/git.git/blobdiff - refs/files-backend.c
Make sure refs/rewritten/ is per-worktree
[thirdparty/git.git] / refs / files-backend.c
index cb926771517f8d954f519fa6d45ff2d282be9d05..3daf8e6dd0223258d7ef37f8003bfea17b11e39a 100644 (file)
@@ -214,13 +214,13 @@ static void files_ref_path(struct files_ref_store *refs,
 }
 
 /*
- * Manually add refs/bisect and refs/worktree, which, being
+ * Manually add refs/bisect, refs/rewritten and refs/worktree, which, being
  * per-worktree, might not appear in the directory listing for
  * refs/ in the main repo.
  */
 static void add_per_worktree_entries_to_dir(struct ref_dir *dir, const char *dirname)
 {
-       const char *prefixes[] = { "refs/bisect/", "refs/worktree/" };
+       const char *prefixes[] = { "refs/bisect/", "refs/worktree/", "refs/rewritten/" };
        int ip;
 
        if (strcmp(dirname, "refs/"))