X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=dgit;h=32eaa2a830bc68cdea02fd7e7077af8593edc384;hp=7b447dedaf3db59f1778918c9f6204e81db5266e;hb=c2320e3c4c99e74d80f029be8ca8c0d06d82d67c;hpb=fef73c57e195e389e6bd9f0ae6ec48a020c70c16 diff --git a/dgit b/dgit index 7b447ded..32eaa2a8 100755 --- a/dgit +++ b/dgit @@ -75,7 +75,7 @@ our (@curl) = qw(curl -f); our (@dput) = qw(dput); our (@debsign) = qw(debsign); our (@gpg) = qw(gpg); -our (@sbuild) = qw(sbuild -A); +our (@sbuild) = qw(sbuild); our (@ssh) = 'ssh'; our (@dgit) = qw(dgit); our (@dpkgbuildpackage) = qw(dpkg-buildpackage -i\.git/ -I.git); @@ -155,7 +155,7 @@ END { local ($?); foreach my $f (@end) { eval { $f->(); }; - warn "$us: cleanup: $@" if length $@; + print STDERR "$us: cleanup: $@" if length $@; } }; @@ -1706,7 +1706,7 @@ sub clone ($) { canonicalise_suite(); badusage "dry run makes no sense with clone" unless act_local(); my $hasgit = check_for_git(); - mkdir $dstdir or die "$dstdir $!"; + mkdir $dstdir or fail "create \`$dstdir': $!"; changedir $dstdir; runcmd @git, qw(init -q); my $giturl = access_giturl(1); @@ -1751,7 +1751,14 @@ sub pull () { } sub check_not_dirty () { + foreach my $f (qw(local-options local-patch-header)) { + if (stat_exists "debian/source/$f") { + fail "git tree contains debian/source/$f"; + } + } + return if $ignoredirty; + my @cmd = (@git, qw(diff --quiet HEAD)); debugcmd "+",@cmd; $!=0; $?=0; system @cmd; @@ -1761,12 +1768,6 @@ sub check_not_dirty () { } else { failedcmd @cmd; } - - foreach my $f (qw(local-options local-patch-header)) { - if (stat_exists "debian/source/$f") { - fail "git tree contains debian/source/$f"; - } - } } sub commit_admin ($) { @@ -2082,7 +2083,7 @@ END sign_changes $changesfile; } - supplementary_message(<<'END'); + supplementary_message(<