chiark / gitweb /
git-debrebase: Do not bail making patches if there aren't any.
[dgit.git] / git-debrebase
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';
 }