# [PATCH] svnimport: Fix broken tags being generated

3 messages from 2006-10-16 to 2006-10-16. Participants: Petr Baudis, Junio C Hamano.
Thread: https://gitlist.dev/t/5935

## Petr Baudis, 2006-10-16 01:00

Subject: [PATCH] svnimport: Fix broken tags being generated
Message-ID: <20061016010037.27259.26157.stgit@machine.or.cz>
URL: https://gitlist.dev/e/20061016010037.27259.26157.stgit%40machine.or.cz

```
Currently git-svnimport generates broken tags missing the timespec in the
'tagger' line. This is a random stab at a minimal fix.

Signed-off-by: Petr Baudis <pasky@suse.cz>
---

 git-svnimport.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/git-svnimport.perl b/git-svnimport.perl
index 988514e..aca0e4f 100755
--- a/git-svnimport.perl
+++ b/git-svnimport.perl
@@ -838,7 +838,7 @@ #	}
 		print $out ("object $cid\n".
 		    "type commit\n".
 		    "tag $dest\n".
-		    "tagger $committer_name <$committer_email>\n") and
+		    "tagger $committer_name <$committer_email> 0 +0000\n") and
 		close($out)
 		    or die "Cannot create tag object $dest: $!\n";
 

```

## Junio C Hamano, 2006-10-16 05:40

Subject: Re: [PATCH] svnimport: Fix broken tags being generated
Message-ID: <7vpscsx1hr.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7vpscsx1hr.fsf%40assigned-by-dhcp.cox.net
In-Reply-To: <20061016010037.27259.26157.stgit@machine.or.cz>

```
Petr Baudis <pasky@suse.cz> writes:

> Currently git-svnimport generates broken tags missing the timespec in the
> 'tagger' line. This is a random stab at a minimal fix.
>
> Signed-off-by: Petr Baudis <pasky@suse.cz>

Interesting.  Applied.

I remember that older "git tag" does not even add the tagger
line (the kernel history starts using one from 2.6.13-rc4 on Jul
28, 2005).  Does gitweb handle those tags correctly, I wonder?

Especially for 2.6.11-tree tag there is no info you can guess
any "age" information from.

```

## Petr Baudis, 2006-10-16 11:26

Subject: Re: [PATCH] svnimport: Fix broken tags being generated
Message-ID: <20061016112659.GB20017@pasky.or.cz>
URL: https://gitlist.dev/e/20061016112659.GB20017%40pasky.or.cz
In-Reply-To: <7vpscsx1hr.fsf@assigned-by-dhcp.cox.net>

```
Dear diary, on Mon, Oct 16, 2006 at 07:40:00AM CEST, I got a letter
where Junio C Hamano <junkio@cox.net> said that...
> Petr Baudis <pasky@suse.cz> writes:
> 
> > Currently git-svnimport generates broken tags missing the timespec in the
> > 'tagger' line. This is a random stab at a minimal fix.
> >
> > Signed-off-by: Petr Baudis <pasky@suse.cz>
> 
> Interesting.  Applied.
> 
> I remember that older "git tag" does not even add the tagger
> line (the kernel history starts using one from 2.6.13-rc4 on Jul
> 28, 2005).  Does gitweb handle those tags correctly, I wonder?

It seems from git_tag() that the original author thought about that.

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
#!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
$/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)

```
