chiark / gitweb /
Fix two calls to chdir without proper error checking.
[dgit.git] / dgit
diff --git a/dgit b/dgit
index d8ab871ac6bf1004fcc041c71af09368782eaade..cdf2e93b2e56e5325a1ee2a03f0626cd46b0c229 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -3777,12 +3777,12 @@ sub quilt_fixup_singlepatch ($$$) {
     rmtree("debian/patches");
 
     runcmd @dpkgsource, qw(-b .);
-    chdir "..";
+    changedir "..";
     runcmd @dpkgsource, qw(-x), (srcfn $version, ".dsc");
     rename srcfn("$upstreamversion", "/debian/patches"), 
            "work/debian/patches";
 
-    chdir "work";
+    changedir "work";
     commit_quilty_patch();
 }