Merge branch 'bc/format-patch-cover-no-attach'
[gitweb.git] / refs.c
diff --git a/refs.c b/refs.c
index 6fa3a4962a91a87e88c8cd12fd79a2dc4e714b58..1f31e6cf00dcb17c1fdf24a98e9575dbd1ba62fc 100644 (file)
--- a/refs.c
+++ b/refs.c
@@ -615,7 +615,8 @@ int dwim_log(const char *str, int len, struct object_id *oid, char **log)
 static int is_per_worktree_ref(const char *refname)
 {
        return !strcmp(refname, "HEAD") ||
-               starts_with(refname, "refs/bisect/");
+               starts_with(refname, "refs/bisect/") ||
+               starts_with(refname, "refs/rewritten/");
 }
 
 static int is_pseudoref_syntax(const char *refname)