On Sat, Jul 16, 2016 at 12:59 AM, Richard Maw <richard....@gmail.com> wrote:
> +               unsigned char unused[20];
> +               char *namespaced_head = NULL;
> +               const char *ref;
> +               namespaced_head = mkpathdup("%sHEAD", get_git_namespace());
> +               /* NOTE: RESOLVE_REF_NO_RECURSE is required to prevent it 
> resolving HEAD
> +                  into a ref outside of the namespace. */
> +               ref = resolve_ref_unsafe(namespaced_head, 
> RESOLVE_REF_NO_RECURSE, unused, NULL);

This funny business is duplicated from a previous patch.
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit

Reply via email to