chiark / gitweb /
Fix a badly open-coded copy of check_not_dirty. Closes: #720524.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Aug 2013 15:17:22 +0000 (16:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 25 Aug 2013 15:17:22 +0000 (16:17 +0100)
debian/changelog
dgit

index 58de63aebdf6401026059f9520b72083291541a4..cdcf9ecdfa8942d01855fbc1a74ec01e8c8a4713 100644 (file)
@@ -13,6 +13,7 @@ dgit (0.11) unstable; urgency=low
     and can also have more skew.)
   * Better error message for use of UNRELEASED suite.  Closes: #720523.
   * Do not canonicalise suite more than once.  Related to: #720526.
+  * Fix a badly open-coded copy of check_not_dirty.  Closes: #720524.
 
  --
 
diff --git a/dgit b/dgit
index 55c2b243d3b6dfa1d11909d3242acf533883028c..693aa18267d30ab931e6d4ce5c25ca6ff02ba7f2 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -953,7 +953,7 @@ sub cmd_pull {
 sub cmd_push {
     parseopts();
     badusage "-p is not allowed with dgit push" if defined $package;
-    runcmd @git, qw(diff --quiet HEAD);
+    check_not_dirty();
     my $clogp = parsechangelog();
     $package = getfield $clogp, 'Source';
     if (@ARGV==0) {