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

[PATCH] git-svn: doublecheck if really file or dir

From
AMAndrej Manduch <amanduch@gmail.com>
Date
Jul 18, 2014, 04:20 UTC
Message-ID
<1405657201-32035-1-git-send-email-amanduch@gmail.com>
* this fixes 'git svn info `pwd`' buggy behaviour
Signed-off-by: Andrej Manduch <amanduch@gmail.com>
---
 git-svn.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-svn.perl b/git-svn.perl
index 0a32372..5bbfecf 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2029,7 +2029,7 @@ sub find_file_type_and_diff_status {
 	my $mode = (split(' ', $ls_tree))[0] || "";
 
 	return ("link", $diff_status) if $mode eq "120000";
-	return ("dir", $diff_status) if $mode eq "040000";
+	return ("dir", $diff_status) if $mode eq "040000" or -d $path;
 	return ("file", $diff_status);
 }
 
-- 
2.0.0.GIT
Next: Eric Wong
Message 1 of 5 in “git-svn: doublecheck if really file or dir”
  1. git-svn: doublecheck if really file or dirAndrej Manduch, Jul 18, 2014
  2. Eric WongJul 23, 2014
  3. Andrej ManduchJul 27, 2014
  4. Eric WongAug 3, 2014
  5. Andrej ManduchAug 3, 2014

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.