Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-svn: reduce stat() calls for a backwards compatibility check
author
Eric Wong
<normalperson@yhbt.net>
Wed, 13 Jun 2007 09:37:05 +0000
(
02:37
-0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 13 Jun 2007 18:23:51 +0000
(11:23 -0700)
Also, this fixes a bug where in an odd case a remote named
"config" could get renamed to ".metadata".
Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
b3bf96d
)
diff --git
a/git-svn.perl
b/git-svn.perl
index 58f7dd09576ddf712900f435e4221fdbef892819..0ae8d70de1eb884b0d51879e35e2aad79a56c296 100755
(executable)
--- a/
git-svn.perl
+++ b/
git-svn.perl
@@
-1457,7
+1457,7
@@
sub tmp_config {
my (@args) = @_;
my $old_def_config = "$ENV{GIT_DIR}/svn/config";
my $config = "$ENV{GIT_DIR}/svn/.metadata";
- if (
-e $old_def_config && ! -e $
config) {
+ if (
! -f $config && -f $old_def_
config) {
rename $old_def_config, $config or
die "Failed rename $old_def_config => $config: $!\n";
}