aboutsummaryrefslogtreecommitdiff
path: root/line-log.h
diff options
context:
space:
mode:
authorSZEDER Gábor <szeder.dev@gmail.com>2017-02-03 03:48:12 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-03 22:18:40 -0800
commitf6114408113af39a18b21693c3a83600e06e5475 (patch)
tree1544e0489b2654edb2f4bfce9ddaf12a1190dc34 /line-log.h
parenteac90623bd8177ecdd8630dd96494a1d865fd516 (diff)
downloadgit-f6114408113af39a18b21693c3a83600e06e5475.tar.gz
git-f6114408113af39a18b21693c3a83600e06e5475.tar.xz
completion tests: consolidate getting path of current working directory
Some tests of the __gitdir() helper function use the $TRASH_DIRECTORY variable in direct path comparisons. In general this should be avoided, because it might contain symbolic links. There happens to be no issues with this here, however, because those tests use $TRASH_DIRECTORY both for specifying the expected result and for specifying input which in turn is just 'echo'ed verbatim. Other __gitdir() tests ask for the path of the trash directory by running $(pwd -P) in each test, sometimes even twice in a single test. Run $(pwd) only once at the beginning of the test script to store the path of the trash directory in a variable, and use that variable in all __gitdir() tests. Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'line-log.h')
0 files changed, 0 insertions, 0 deletions