summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b3bf96d)
raw | patch | inline | side by side (parent: b3bf96d)
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>
"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 |
diff --git a/git-svn.perl b/git-svn.perl
index 58f7dd09576ddf712900f435e4221fdbef892819..0ae8d70de1eb884b0d51879e35e2aad79a56c296 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
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";
}