summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2019-12-21 18:13:39 -0700
committerSean Whitton <spwhitton@spwhitton.name>2019-12-21 18:13:39 -0700
commitcf894e3d4687bb1b7b21c018ea6aed92e1d089a6 (patch)
tree614db607aed9bbc3a170bd8ac99dce912459ff71
parentf82d9fa56d00032e361214a4fb4bf5ce4c9d41da (diff)
downloaddotfiles-cf894e3d4687bb1b7b21c018ea6aed92e1d089a6.tar.gz
use no_chdir to hopefully avoid failures to cd
-rwxr-xr-xbin/annex-to-annex3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/annex-to-annex b/bin/annex-to-annex
index 87266fe6..3d412ee4 100755
--- a/bin/annex-to-annex
+++ b/bin/annex-to-annex
@@ -140,7 +140,8 @@ foreach my $source (@sources) {
# $commit_dir may no longer exist, as if it was empty,
# `git rm` will have removed it
$commit_dir = dirname($commit_dir) until -d $commit_dir;
- }
+ },
+ no_chdir => 1,
},
$source
);