summaryrefslogtreecommitdiff
path: root/sha1-lookup.c
diff options
context:
space:
mode:
authorLibravatar Jacob Keller <jacob.keller@gmail.com>2017-12-09 21:40:12 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-12-11 16:13:42 -0800
commit6d7c17ec9d4b6c384648d5bc28bc234e3083c66e (patch)
treef8ef0b82d171081d321975521a7adb09b99447a7 /sha1-lookup.c
parentdiff: use skip_to_optional_arg_default() in parsing --relative (diff)
downloadtgif-6d7c17ec9d4b6c384648d5bc28bc234e3083c66e.tar.xz
diff: add tests for --relative without optional prefix value
We already have tests for --relative, but they currently only test when a prefix has been provided. This fails to test the case where --relative by itself should use the current directory as the prefix. Teach the check_$type functions to take a directory argument to indicate which subdirectory to run the git commands in. Add a new test which uses this to test --relative without a prefix value. Signed-off-by: Jacob Keller <jacob.keller@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1-lookup.c')
0 files changed, 0 insertions, 0 deletions