Skip to content

Commit

Permalink
Merge branch 'dl/branch-error-message' into maint
Browse files Browse the repository at this point in the history
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"
  • Loading branch information
Junio C Hamano committed Jun 5, 2015
2 parents c538004 + ccd593c commit cbac706
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions builtin/branch.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,
sha1, &flags);
if (!target) {
error(remote_branch
? _("remote branch '%s' not found.")
? _("remote-tracking branch '%s' not found.")
: _("branch '%s' not found."), bname.buf);
ret = 1;
continue;
Expand All @@ -257,15 +257,15 @@ static int delete_branches(int argc, const char **argv, int force, int kinds,

if (delete_ref(name, sha1, REF_NODEREF)) {
error(remote_branch
? _("Error deleting remote branch '%s'")
? _("Error deleting remote-tracking branch '%s'")
: _("Error deleting branch '%s'"),
bname.buf);
ret = 1;
continue;
}
if (!quiet) {
printf(remote_branch
? _("Deleted remote branch %s (was %s).\n")
? _("Deleted remote-tracking branch %s (was %s).\n")
: _("Deleted branch %s (was %s).\n"),
bname.buf,
(flags & REF_ISBROKEN) ? "broken"
Expand Down

0 comments on commit cbac706

Please sign in to comment.