diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-09-24 10:30:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-24 10:30:52 -0700 |
commit | 00d5f665a031a0e74d6e03f54d5aba547a5b0c14 (patch) | |
tree | 8d011c4e969de71e51a30c44f41f0e8b600584f0 /builtin | |
parent | Merge branch 'jt/lazy-object-fetch-fix' (diff) | |
parent | builtin/remote: quote remote name on error to display empty name (diff) | |
download | tgif-00d5f665a031a0e74d6e03f54d5aba547a5b0c14.tar.xz |
Merge branch 'ms/remote-error-message-update'
Update error messages given by "git remote" and make them consistent.
* ms/remote-error-message-update:
builtin/remote: quote remote name on error to display empty name
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/remote.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/remote.c b/builtin/remote.c index 40c6f8a1bd..f7edf7f2cb 100644 --- a/builtin/remote.c +++ b/builtin/remote.c @@ -626,7 +626,7 @@ static int mv(int argc, const char **argv) oldremote = remote_get(rename.old_name); if (!remote_is_configured(oldremote, 1)) - die(_("No such remote: %s"), rename.old_name); + die(_("No such remote: '%s'"), rename.old_name); if (!strcmp(rename.old_name, rename.new_name) && oldremote->origin != REMOTE_CONFIG) return migrate_file(oldremote); @@ -762,7 +762,7 @@ static int rm(int argc, const char **argv) remote = remote_get(argv[1]); if (!remote_is_configured(remote, 1)) - die(_("No such remote: %s"), argv[1]); + die(_("No such remote: '%s'"), argv[1]); known_remotes.to_delete = remote; for_each_remote(add_known_remote, &known_remotes); @@ -861,7 +861,7 @@ static int get_remote_ref_states(const char *name, states->remote = remote_get(name); if (!states->remote) - return error(_("No such remote: %s"), name); + return error(_("No such remote: '%s'"), name); read_branches(); |