chiark / gitweb /
Fix two calls to chdir without proper error checking.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2016 22:48:02 +0000 (23:48 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 28 Sep 2016 22:48:03 +0000 (23:48 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
dgit

index 5ecee0387e5bcd3140403fe96b244fdf898edbe8..e0d986c846a9847b36d11eaf378d05ccf615eedc 100644 (file)
@@ -53,6 +53,7 @@ dgit (1.5~~) unstable; urgency=medium
   * Turn off git gc in the private working areas.
   * Do not fail to do some important quilt processing in some
     --quilt modes.
+  * Fix two calls to chdir without proper error checking.
   * Fix a couple of bugs in error reporting.
 
   Test suite:
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();
 }