From: Jeff King <peff@peff.net>
To: Nigel Magnay <nigel.magnay@gmail.com>
Cc: git <git@vger.kernel.org>
Subject: Re: cvsimport and branches with "(" in the name
Date: Tue, 29 Apr 2008 11:52:38 -0400 [thread overview]
Message-ID: <20080429155238.GA18494@sigill.intra.peff.net> (raw)
In-Reply-To: <320075ff0804290022r56c9f4efx74a13d3502be212@mail.gmail.com>
On Tue, Apr 29, 2008 at 08:22:02AM +0100, Nigel Magnay wrote:
> git 1.5.4.4 on ubuntu, I cvsimport a repository that has an oddly
> named branch - I get
>
> sh: Syntax error: "(" unexpected
> Cannot write branch ChapelHill_3_0(iteration2)_esap_demo for update:
> Bad file descriptor
Looks like cvsimport is handing something as an argument to a git
command, but we accidentally involve the shell. Maybe here:
diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 95c5eec..bdac5d5 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -772,7 +772,7 @@ sub commit {
waitpid($pid,0);
die "Error running git-commit-tree: $?\n" if $?;
- system("git-update-ref $remote/$branch $cid") == 0
+ system('git-update-ref', "$remote/$branch", $cid) == 0
or die "Cannot write branch $branch for update: $!\n";
if ($tag) {
Does that fix it?
> Any ideas on how to diagnose / fix it further ?
If that doesn't work, you might try running with GIT_TRACE=1, and then
you can see which commands are being run when the error occurs.
-Peff
next prev parent reply other threads:[~2008-04-29 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-29 7:22 cvsimport and branches with "(" in the name Nigel Magnay
2008-04-29 15:52 ` Jeff King [this message]
2008-04-30 0:45 ` Morten Welinder
2008-04-30 3:31 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080429155238.GA18494@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=nigel.magnay@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).