]> git.ipfire.org Git - thirdparty/git.git/blobdiff - http-push.c
l10n: Update Spanish translation
[thirdparty/git.git] / http-push.c
index e4c9b065ce13ca2c4e522e20f603f192ddcb9306..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);
 }
@@ -1523,6 +1523,7 @@ static int remote_exists(const char *path)
                break;
        case HTTP_ERROR:
                error("unable to access '%s': %s", url, curl_errorstr);
+               /* fallthrough */
        default:
                ret = -1;
        }