summaryrefslogtreecommitdiff
path: root/bin/git-push-all
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2020-03-23 17:16:36 -0700
committerSean Whitton <spwhitton@spwhitton.name>2020-03-23 17:16:36 -0700
commit3b02f5e5a24cee5a4a48b03e81bbe02541b86958 (patch)
treeb33e3dc676de0c4af023c918e3001b9a8809e335 /bin/git-push-all
parentce2e10580d3282d47670d52a924ccb6cd1e9ba9e (diff)
downloaddotfiles-3b02f5e5a24cee5a4a48b03e81bbe02541b86958.tar.gz
avoid passing "." to Git::Wrapper::new
Diffstat (limited to 'bin/git-push-all')
-rwxr-xr-xbin/git-push-all3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/git-push-all b/bin/git-push-all
index f309524d..df3f5af3 100755
--- a/bin/git-push-all
+++ b/bin/git-push-all
@@ -47,13 +47,14 @@ use warnings;
use lib "$ENV{HOME}/src/dotfiles/perl5";
no warnings "experimental::smartmatch";
+use Cwd;
use Array::Utils qw{ array_minus };
use Git::Wrapper;
use Config::GitLike;
use List::MoreUtils qw{ apply };
use Local::Util::Git qw(unpushed_tags);
-my $git = Git::Wrapper->new(".");
+my $git = Git::Wrapper->new(getcwd);
my $config = Config::GitLike->new( confname => 'config' );
$config->load_file('.git/config');