]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/remote.c
ref_store: take a `msg` parameter when deleting references
[thirdparty/git.git] / builtin / remote.c
index addf97ad29343b2328adce2c27ccea92aee6af7a..5f52c5a6d6dfdb2202b9e86991b64bd1a5bd552d 100644 (file)
@@ -786,7 +786,7 @@ static int rm(int argc, const char **argv)
        strbuf_release(&buf);
 
        if (!result)
-               result = delete_refs(&branches, REF_NODEREF);
+               result = delete_refs("remote: remove", &branches, REF_NODEREF);
        string_list_clear(&branches, 0);
 
        if (skipped.nr) {
@@ -1301,7 +1301,7 @@ static int prune_remote(const char *remote, int dry_run)
        string_list_sort(&refs_to_prune);
 
        if (!dry_run)
-               result |= delete_refs(&refs_to_prune, 0);
+               result |= delete_refs("remote: prune", &refs_to_prune, 0);
 
        for_each_string_list_item(item, &states.stale) {
                const char *refname = item->util;