git-mv: fully detect 'directory moved into itself'
[gitweb.git] / pack-objects.c
index 4e941e7392077dca9b511282be13e2b559589e5b..8864a31cc14f4c57fe0115a0bfe73904fdb1ae12 100644 (file)
@@ -524,7 +524,7 @@ int main(int argc, char **argv)
                unsigned char sha1[20];
 
                if (get_sha1_hex(line, sha1))
-                       die("expected sha1, got garbage");
+                       die("expected sha1, got garbage:\n %s", line);
                hash = 0;
                p = line+40;
                while (*p) {