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

[PATCH 2/2] git-svn: Move setting of svn.authorsfile in clone to between init and fetch

From
Alex Vandiver <alex@chmrr.net>
Date
Dec 8, 2009, 20:54 UTC
Message-ID
<1260305651-11111-2-git-send-email-alex@chmrr.net>
In-Reply-To
<1260305651-11111-1-git-send-email-alex@chmrr.net>

If a clone errors out because of a missing author, or user interrupt, this allows `git svn fetch` to resume seamlessly, rather than forcing the user to re-provide the path to the authors file.

Signed-off-by: Alex Vandiver <alex@chmrr.net>
---
 git-svn.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index cf5e75e..3c3e0e0 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -394,9 +394,9 @@ sub cmd_clone {
 	$path = basename($url) if !defined $path || !length $path;
 	my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
 	cmd_init($url, $path);
-	Git::SVN::fetch_all($Git::SVN::default_repo_id);
 	command_oneline('config', 'svn.authorsfile', $authors_absolute)
 	    if $_authors;
+	Git::SVN::fetch_all($Git::SVN::default_repo_id);
 }
 
 sub cmd_init {
-- 
1.6.6.rc0.360.gc408
Previous: Alex VandiverNext: Eric Wong
Message 2 of 3 in “git-svn: Set svn.authorsfile to an absolute path when cloning”
  1. 1/2 git-svn: Set svn.authorsfile to an absolute path when cloningAlex Vandiver, Dec 8, 2009
  2. 2/2 git-svn: Move setting of svn.authorsfile in clone to between init and fetchAlex Vandiver, Dec 8, 2009
  3. Eric WongDec 9, 2009

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.