Merge branch 'ab/pcre-v2' into maint
[gitweb.git] / http-push.c
index d860c477c60e7baec79220d9f06330a139d0e035..493ee7d719d488f25cd6c45bb4c7ce1d5a75977b 100644 (file)
@@ -1018,7 +1018,7 @@ static int get_oid_hex_from_objpath(const char *path, struct object_id *oid)
        memcpy(hex, path, 2);
        path += 2;
        path++; /* skip '/' */
-       memcpy(hex, path, GIT_SHA1_HEXSZ - 2);
+       memcpy(hex + 2, path, GIT_SHA1_HEXSZ - 2);
 
        return get_oid_hex(hex, oid);
 }