Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCHv3] fast-import: tighten parsing of mark references

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:53:28

Jonathan Nieder [off-list ref] writes:
Pete Wyckoff wrote:
quoted
This addresses all of Jonathan's comments, in particular:
Nice.  Thanks much.  I only have a few small worries left:

[...]
quoted
+++ b/t/t9300-fast-import.sh
@@ -2635,4 +2635,280 @@ test_expect_success \
[...]
quoted
+test_expect_success 'S: filemodify with garbage after sha1 must fail' '
+	sha1=$(grep -w :103 marks | cut -d\  -f2) &&
"grep -w" isn't used elsewhere in the testsuite.  Is it portable?
It is not portable enough.
If I understood the discussion before correctly, this error message is
suboptimal and something like "invalid dataref" would be a little
clearer, right?

That's orthogonal to what this patch is about so I'm not suggesting
changing it.  But shouldn't the test just check that fast-import fails
without committing to any particular message?
That would certainly make more sense.

Thanks for being extra careful.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help