diff options
author | Jacob Keller <jacob.keller@gmail.com> | 2017-12-09 21:40:12 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-12-11 16:13:42 -0800 |
commit | 6d7c17ec9d4b6c384648d5bc28bc234e3083c66e (patch) | |
tree | f8ef0b82d171081d321975521a7adb09b99447a7 /dir.c | |
parent | 1efad51197f52ba9fb928b92a7f92514ab02a97f (diff) | |
download | git-6d7c17ec9d4b6c384648d5bc28bc234e3083c66e.tar.gz |
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 'dir.c')
0 files changed, 0 insertions, 0 deletions