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 325d37f..2b75575 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 3d74d0e..7c69c4c 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';
 }