threads / patch / 38988

patchbranch: fix funny-sounding error message

Subject: [PATCH] branch: fix funny-sounding error message

## tl;dr

One message between Apr 2, 2015 and Apr 2, 2015. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Alex Henrie· Apr 2, 2015, 21:27 UTC · lore
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
 builtin/branch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Show changes to builtin/branch.c +1 −1
diff --git a/builtin/branch.c b/builtin/branch.c
index 1d15037..c0b4bae 100644
--- a/builtin/branch.c
+++ b/builtin/branch.c
@@ -972,7 +972,7 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
 
 		if (!branch) {
 			if (!argc || !strcmp(argv[0], "HEAD"))
-				die(_("could not set upstream of HEAD to %s when "
+				die(_("could not set upstream of HEAD to %s because "
 				      "it does not point to any branch."),
 				    new_upstream);
 			die(_("no such branch '%s'"), argv[0]);
-- 
2.3.5

← back to recent threads