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