Commits


remove trailing whitespace; patch by Josiah Frentsos


don't pass $ret to test_done on failure when it's known to be zero Otherwise the test directory it's not left in place; ok tracey@


use test(1) -eq and -ne to compare integers, and reduce quoting This brings the rest of the regression test scripts in line with patch.sh.


ref.sh: fix pastos and report the actual command that was run


add missing "return 1" to failure handling in the regress scripts ok stsp@


make 'got ref -d' print reference name and value like the new -X options do


validate reference names in open_ref() This catches invalid reference names passed to 'got ref -l' and will also be needed to validate reference names passed to a future 'gotadmin pack' command. ok naddy@


use POSIX [s1 = s2] syntax instead of [s1 == s2]; patch by Ryo ONODERA


make dangling symbolic references show up in 'got ref -l' Storing a resolved ID for each reference list item was a bad idea. This ID cannot be resolved if a symbolic references points to a reference which does not exist. Such symrefs were skipped by got ref -l as a result. Just let users of reference lists resolve the IDs as needed.


make 'got ref -d' delete both loose and packed representations of the reference


switch function declarations from Korn shell to Bourne/POSIX shell syntax ok stsp


add a -q option to tests for quiet output and use it for 'make regress' Previous default output remains when test cases are run individually. ok tracey


handle refs/remotes/origin/HEAD properly; reported by Matthias aka _xhr_


allow for limiting output of 'got ref -l' to a single ref or a namespace


add -c option to 'got ref' which now expects just one argument after options