git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Stephen R. van den Berg <srb@cuci.nl>
Date
Apr 3, 2008, 10:07 UTC
Message-ID
<20080425234556.C9C7A545F@aristoteles.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
Message 1 of 1 in “Protect current tags, import tags into remote tree”
  1. Protect current tags, import tags into remote treeStephen R. van den Berg, Apr 3, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.