X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=inline;f=dgit;h=ff6956e1919f67e656aab48dab3a373b41d1bc53;hb=c469abf955290d0eb901b503c6e6c9433b309706;hp=df4ea91a0570c512a0f05ed6ddd3bd62aded6d57;hpb=a5ea919cd9bc80267bb1071b41a90e981ada6032;p=dgit.git diff --git a/dgit b/dgit index df4ea91a..ff6956e1 100755 --- a/dgit +++ b/dgit @@ -849,6 +849,11 @@ sub dopush () { ($changesfile) = @cs; } } + my $changes = parsecontrol($changesfile,$changesfile); + foreach my $field (qw(Source Distribution Version)) { + $changes->{$field} eq $clogp->{$field} or + fail "changes field $field \`$changes->{$field}'". + " does not match changelog \`$clogp->{$field}'"; my $tag = debiantag($dversion); if (!check_for_git()) { create_remote_git_repo();