Skip to content

Commit cbac706

Browse files
committed
Merge branch 'dl/branch-error-message' into maint
Error messages from "git branch" called remote-tracking branches as "remote branches". * dl/branch-error-message: branch: do not call a "remote-tracking branch" a "remote branch"
2 parents c538004 + ccd593c commit cbac706

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

builtin/branch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
242242
sha1, &flags);
243243
if (!target) {
244244
error(remote_branch
245-
? _("remote branch '%s' not found.")
245+
? _("remote-tracking branch '%s' not found.")
246246
: _("branch '%s' not found."), bname.buf);
247247
ret = 1;
248248
continue;
@@ -257,15 +257,15 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
257257

258258
if (delete_ref(name, sha1, REF_NODEREF)) {
259259
error(remote_branch
260-
? _("Error deleting remote branch '%s'")
260+
? _("Error deleting remote-tracking branch '%s'")
261261
: _("Error deleting branch '%s'"),
262262
bname.buf);
263263
ret = 1;
264264
continue;
265265
}
266266
if (!quiet) {
267267
printf(remote_branch
268-
? _("Deleted remote branch %s (was %s).\n")
268+
? _("Deleted remote-tracking branch %s (was %s).\n")
269269
: _("Deleted branch %s (was %s).\n"),
270270
bname.buf,
271271
(flags & REF_ISBROKEN) ? "broken"

0 commit comments

Comments
 (0)