[PATCH 11/16] Add namespace support to dumb-clone
Jason A. Donenfeld
Jason at zx2c4.com
Fri Jul 29 16:38:50 CEST 2016
On Sat, Jul 16, 2016 at 12:59 AM, Richard Maw <richard.maw at 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.
More information about the CGit
mailing list