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

Subsystems: the rest

DORMANTno replies

2 messages, 1 author, 2016-06-15 · open the first message on its own page

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

From: Andrej Manduch <hidden>
Date: 2016-06-15 23:01:58

* this fixes 'git svn info `pwd`' buggy behaviour

Signed-off-by: Andrej Manduch <redacted>
---
 git-svn.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-svn.perl b/git-svn.perl
index 0a32372..c3d893e 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" od -d $path;
 	return ("file", $diff_status);
 }
 
-- 
2.0.0.GIT

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

From: Andrej Manduch <hidden>
Date: 2016-06-15 23:01:58

I'm sorry, i've made mistake in this one.  Please ingnore it. Correct
patch is on the way.

kind regards,
b.

On Fri, Jul 18, 2014 at 6:05 AM, Andrej Manduch [off-list ref] wrote:
quoted hunk
* this fixes 'git svn info `pwd`' buggy behaviour

Signed-off-by: Andrej Manduch <redacted>
---
 git-svn.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-svn.perl b/git-svn.perl
index 0a32372..c3d893e 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" od -d $path;
        return ("file", $diff_status);
 }

--
2.0.0.GIT
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help