Merge branch 'jk/uploadpack-packobjectshook-fix' into maint
[gitweb.git] / replace-object.c
index 3c17864eb7d842f7abdbd6a6d87106468376f659..e295e87943102c2a1ad903aea1a634d34bf603a0 100644 (file)
@@ -18,7 +18,7 @@ static int register_replace_ref(struct repository *r,
 
        if (get_oid_hex(hash, &repl_obj->original.oid)) {
                free(repl_obj);
-               warning("bad replace ref name: %s", refname);
+               warning(_("bad replace ref name: %s"), refname);
                return 0;
        }
 
@@ -27,12 +27,12 @@ static int register_replace_ref(struct repository *r,
 
        /* Register new object */
        if (oidmap_put(r->objects->replace_map, repl_obj))
-               die("duplicate replace ref: %s", refname);
+               die(_("duplicate replace ref: %s"), refname);
 
        return 0;
 }
 
-static void prepare_replace_object(struct repository *r)
+void prepare_replace_object(struct repository *r)
 {
        if (r->objects->replace_map)
                return;
@@ -70,5 +70,5 @@ const struct object_id *do_lookup_replace_object(struct repository *r,
                        return cur;
                cur = &repl_obj->replacement;
        }
-       die("replace depth too high for object %s", oid_to_hex(oid));
+       die(_("replace depth too high for object %s"), oid_to_hex(oid));
 }