git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] import-tars: Add missing closing bracket
@ 2009-10-09 12:08 Ingmar Vanhassel
  2009-10-09 12:52 ` Peter Krefting
  0 siblings, 1 reply; 2+ messages in thread
From: Ingmar Vanhassel @ 2009-10-09 12:08 UTC (permalink / raw)
  To: git; +Cc: Peter Krefting, Junio C Hamano, Ingmar Vanhassel

This fixes an obvious syntax error that snuck in commit 7e787953:

syntax error at /home/ingmar/bin//git-import-tars line 143, near "/^$/ { "
syntax error at /home/ingmar/bin//git-import-tars line 145, near "} else"
syntax error at /home/ingmar/bin//git-import-tars line 152, near "}"

Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>
---
 contrib/fast-import/import-tars.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/contrib/fast-import/import-tars.perl b/contrib/fast-import/import-tars.perl
index a909716..7001862 100755
--- a/contrib/fast-import/import-tars.perl
+++ b/contrib/fast-import/import-tars.perl
@@ -140,7 +140,7 @@ foreach my $tar_file (@ARGV)
 				} elsif (!$header_done && /^Author:\s+([^<>]*)\s+<(.*)>\s*$/i) {
 					$this_author_name = $1;
 					$this_author_email = $2;
-				} elsif (!$header_done && /^$/ { # empty line ends header.
+				} elsif (!$header_done && /^$/) { # empty line ends header.
 					$header_done = 1;
 				} else {
 					$commit_msg .= $_;
-- 
1.6.5.rc3.193.gdf7a

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

* Re: [PATCH] import-tars: Add missing closing bracket
  2009-10-09 12:08 [PATCH] import-tars: Add missing closing bracket Ingmar Vanhassel
@ 2009-10-09 12:52 ` Peter Krefting
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Krefting @ 2009-10-09 12:52 UTC (permalink / raw)
  To: Ingmar Vanhassel; +Cc: Git Mailing List, Junio C Hamano

Ingmar Vanhassel:

> This fixes an obvious syntax error that snuck in commit 7e787953:

Now, that is embarrassing... :-/ Sorry.

> Signed-off-by: Ingmar Vanhassel <ingmar@exherbo.org>

Tested-by: Peter Krefting <peter@softwolves.pp.se>

-- 
\\// Peter - http://www.softwolves.pp.se/

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

end of thread, other threads:[~2009-10-09 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-09 12:08 [PATCH] import-tars: Add missing closing bracket Ingmar Vanhassel
2009-10-09 12:52 ` Peter Krefting

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).