summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 753dc38)
raw | patch | inline | side by side (parent: 753dc38)
author | Eric Wong <normalperson@yhbt.net> | |
Sat, 14 Nov 2009 22:25:11 +0000 (14:25 -0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Sat, 14 Nov 2009 22:34:13 +0000 (14:34 -0800) |
Since $GIT_DIR does not exist when initializing new repositories,
we can follow back to the global and system config files for
git.
The logic for this was originally introduced when
$GIT_DIR/config was the only config file git could read (back
when "git config" was "git repo-config"), so the function is
renamed to "read_git_config" instead of "read_repo_config".
Signed-off-by: Eric Wong <normalperson@yhbt.net>
we can follow back to the global and system config files for
git.
The logic for this was originally introduced when
$GIT_DIR/config was the only config file git could read (back
when "git config" was "git repo-config"), so the function is
renamed to "read_git_config" instead of "read_repo_config".
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 27fbe3063bfab8be3c67a7879f63ba977556ad1b..ea922ace1d9112ba62ef133153e2114d0989854a 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
my %opts = %{$cmd{$cmd}->[2]} if (defined $cmd);
-read_repo_config(\%opts);
+read_git_config(\%opts);
if ($cmd && ($cmd eq 'log' || $cmd eq 'blame')) {
Getopt::Long::Configure('pass_through');
}
}
# convert GetOpt::Long specs for use by git-config
-sub read_repo_config {
- return unless -d $ENV{GIT_DIR};
+sub read_git_config {
my $opts = shift;
my @config_only;
foreach my $o (keys %$opts) {