chiark / gitweb /
Fix inaccurate error message when archive's git hash is not an ancestor of git repo...
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 2e67eb5be574b26115d412101be1956c314d9bfb..a73fffddc1d635aa44512b3e6e4199d2ddffdf5c 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1355,8 +1355,8 @@ $later_warning_msg
 END
            $hash = $lastpush_hash;
        } else {
-           fail "archive's .dsc refers to ".$dsc_hash.
-               " but this is an ancestor of ".$lastpush_hash;
+           fail "git head (".lrref()."=$lastpush_hash) is not a ".
+               "descendant of archive's .dsc hash ($dsc_hash)";
        }
     } elsif ($dsc) {
        $hash = generate_commit_from_dsc();