git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: [PATCH] Fix receive-pack error msg.
       [not found] <1192901822-20431-1-git-send-email-Joakim.Tjernlund@transmode.se>
@ 2007-10-20 17:44 ` Joakim Tjernlund
  0 siblings, 0 replies; 2+ messages in thread
From: Joakim Tjernlund @ 2007-10-20 17:44 UTC (permalink / raw)
  To: git

ehh, git sendmail didn't send the whole commit msg, just the subject.
Trying again.

> -----Original Message-----
> From: Joackim Tjernlund [mailto:jocke@gentoo-jocke] 
> Sent: den 20 oktober 2007 19:37
> To: git@vger.kernel.org
> Cc: Joakim Tjernlund
> Subject: [PATCH] Fix receive-pack error msg.
> 
> 
> Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> ---
>  receive-pack.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/receive-pack.c b/receive-pack.c
> index d3c422b..1521d0b 100644
> --- a/receive-pack.c
> +++ b/receive-pack.c
> @@ -166,7 +166,7 @@ static const char *update(struct command *cmd)
>  	struct ref_lock *lock;
>  
>  	if (!prefixcmp(name, "refs/") && check_ref_format(name + 5)) {
> -		error("refusing to create funny ref '%s' 
> locally", name);
> +		error("refusing to create funny ref '%s' 
> remotely", name);
>  		return "funny refname";
>  	}
>  
> -- 
> 1.5.3.4
> 
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Fix receive-pack error msg.
@ 2007-10-20 19:31 Joakim Tjernlund
  0 siblings, 0 replies; 2+ messages in thread
From: Joakim Tjernlund @ 2007-10-20 19:31 UTC (permalink / raw)
  To: git; +Cc: Joakim Tjernlund

receive-pack is only executed remotely so when
reporting errors, say so.

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
 receive-pack.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/receive-pack.c b/receive-pack.c
index d3c422b..1521d0b 100644
--- a/receive-pack.c
+++ b/receive-pack.c
@@ -166,7 +166,7 @@ static const char *update(struct command *cmd)
 	struct ref_lock *lock;
 
 	if (!prefixcmp(name, "refs/") && check_ref_format(name + 5)) {
-		error("refusing to create funny ref '%s' locally", name);
+		error("refusing to create funny ref '%s' remotely", name);
 		return "funny refname";
 	}
 
-- 
1.5.3.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-10-21  1:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1192901822-20431-1-git-send-email-Joakim.Tjernlund@transmode.se>
2007-10-20 17:44 ` [PATCH] Fix receive-pack error msg Joakim Tjernlund
2007-10-20 19:31 Joakim Tjernlund

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).