From: Andrej Manduch <amanduch@gmail.com>
To: git@vger.kernel.org
Cc: Andrej Manduch <amanduch@gmail.com>
Subject: [PATCH] git-svn: doublecheck if really file or dir
Date: Fri, 18 Jul 2014 06:05:04 +0200 [thread overview]
Message-ID: <1405656304-30926-1-git-send-email-amanduch@gmail.com> (raw)
* 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..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
next reply other threads:[~2014-07-18 4:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 4:05 Andrej Manduch [this message]
2014-07-18 4:22 ` [PATCH] git-svn: doublecheck if really file or dir Andrej Manduch
-- strict thread matches above, loose matches on Subject: below --
2014-07-18 4:20 Andrej Manduch
2014-07-23 22:04 ` Eric Wong
2014-07-27 2:46 ` Andrej Manduch
2014-08-03 2:45 ` Eric Wong
2014-08-03 12:22 ` Andrej Manduch
[not found] <53DE31E8.3070405@gmail.com>
2014-08-03 13:12 ` Andrej Manduch
2014-08-04 4:02 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1405656304-30926-1-git-send-email-amanduch@gmail.com \
--to=amanduch@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).