chiark / gitweb /
git-debrebase: Do not bail making patches if there aren't any.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 15:56:36 +0000 (16:56 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 11 Aug 2018 16:05:56 +0000 (17:05 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
debian/changelog
git-debrebase

index 325d37fcb7f1b8174f403e7d4f097ba3744e1810..2b755755481dd980d4c4046836987bbdcc5c5cbe 100644 (file)
@@ -2,6 +2,7 @@ dgit (6.7~) unstable; urgency=medium
 
   * git-debrebase: Improve ffq head recording message.
   * git-debrebase: Better (less copious by default) debug output.
+  * git-debrebase: Do not bail making patches if there aren't any.
 
  --
 
index 3d74d0ebc3876f1cb9ca677e56c9eaf88e80d3de..7c69c4c0b2b970eeeee8eb09edae9488dbc3a6bc 100755 (executable)
@@ -344,7 +344,7 @@ sub gbp_pq_export ($$$) {
        { local ($!,$?); copy('../gbp-pq-err', \*STDERR); }
        failedcmd @gbp_cmd;
     }
-    runcmd @git, qw(add -f debian/patches);
+    runcmd @git, qw(add -f debian/patches) if stat_exists 'debian/patches';
 }