# [PATCH] Protect current tags, import tags into remote tree

1 messages from 2008-04-03 to 2008-04-03. Participants: Stephen R. van den Berg.
Thread: https://gitlist.dev/t/13261

## Stephen R. van den Berg, 2008-04-03 10:07

Subject: [PATCH] Protect current tags, import tags into remote tree
Message-ID: <20080425234556.C9C7A545F@aristoteles.cuci.nl>
URL: https://gitlist.dev/e/20080425234556.C9C7A545F%40aristoteles.cuci.nl

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

diff --git a/git-cvsimport.perl b/git-cvsimport.perl
index 95c5eec..73109d6 100755
--- a/git-cvsimport.perl
+++ b/git-cvsimport.perl
@@ -781,7 +781,7 @@ sub commit {
 		$xtag =~ tr/_/\./ if ( $opt_u );
 		$xtag =~ s/[\/]/$opt_s/g;
 
-		system('git-tag', '-f', $xtag, $cid) == 0
+		system("git-update-ref $remote/tags/$xtag $cid") == 0
 			or die "Cannot create tag $xtag: $!\n";
 
 		print "Created tag '$xtag' on '$branch'\n" if $opt_v;
-- 
1.5.5.1.83.ge77a4.dirty

```
