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

[PATCH 3/4] git-svn: verify_ref() should actually --verify

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 28, 2006, 09:16 UTC
Message-ID
<1167297385162-git-send-email-normalperson@yhbt.net>
In-Reply-To
<11672973823960-git-send-email-normalperson@yhbt.net>
Not sure how I missed this the first time around...
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 git-svn.perl |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index a772ce8..74a3424 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -1098,7 +1098,8 @@ sub read_uuid {
 
 sub verify_ref {
 	my ($ref) = @_;
-	eval { command_oneline([ 'rev-parse', $ref ], { STDERR => 0 }) };
+	eval { command_oneline([ 'rev-parse', '--verify', $ref ],
+	                       { STDERR => 0 }); };
 }
 
 sub repo_path_split {
-- 
1.4.4.3.gd4ada
Previous: Eric WongNext: Eric Wong
Message 3 of 4 in “git-svn: remove non-delta fetch code paths”
  1. 1/4 git-svn: remove non-delta fetch code pathsEric Wong, Dec 28, 2006
  2. 2/4 git-svn: print out the SVN library version in --version, tooEric Wong, Dec 28, 2006
  3. 3/4 git-svn: verify_ref() should actually --verifyEric Wong, Dec 28, 2006
  4. 4/4 git-svn: sort multi-init outputEric Wong, Dec 28, 2006

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.