helpful error message when send-pack finds no refs in common.
PATCH 1/1 helpful error message when send-pack finds no refs in common.
Hi all,
Please cc me, I'm not subscribed.
git-push fails when pushing into an empty repository if you don't specify a branch:
git --bare init some-repo git-push some-repo
To get this to work, you need to do
git-push some-repo master
I attached a patch so that the error message suggests trying the latter.
Cheers,
Andrew
Quoted 1 line
From
ee888ea1a7d2e75a0439569e36eabe4620e8f833Mon Sep 17 00:00:00 2001
Date: Tue, 16 Oct 2007 17:16:05 -0400
Subject: [PATCH] helpful error message when send-pack finds no refs in common.
Signed-off-by Andrew Clausen <[email protected]>
--- send-pack.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
send-pack.c +2 -1
@@ -204,7 +204,8 @@ static int send_pack(int in, int out, struct remote *remote, int nr_refspec, chareturn -1 ;if (!remote_refs) { -fprintf (stderr,"No refs in common and none specified; doing nothing.\n" ); +fprintf (stderr, +"No refs in common and none specified; doing nothing.\n" "Perhaps you should specify a branch such as 'master'.\n" );return 0 ; }
Signature · 1 line
1.5.3.1