summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdgit2
1 files changed, 2 insertions, 0 deletions
diff --git a/dgit b/dgit
index 8a097da..9539849 100755
--- a/dgit
+++ b/dgit
@@ -4164,6 +4164,7 @@ sub cmd_sbuild {
" building would result in ambiguity about the intended results"
if @unwanted;
}
+ my $wasdir = must_getcwd();
changedir "..";
if (act_local()) {
stat_exists $dscfn or fail "$dscfn (in parent directory): $!";
@@ -4192,6 +4193,7 @@ sub cmd_sbuild {
rename "$cf", "$cf.inmulti" or fail "$cf\{,.inmulti}: $!";
}
}
+ changedir $wasdir;
maybe_unapply_patches_again();
printdone "build successful, results in $multichanges\n" or die $!;
}