summaryrefslogtreecommitdiff
path: root/git-p4.py
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2015-08-10 09:35:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-08-10 22:37:12 (GMT)
commite3cf230324f740653d4fb4a3087c2daf9da62029 (patch)
treea463f382e6d547ae669948bf4a40175be3063113 /git-p4.py
parentfcd12db6af118b70b5c15cf5fdd6800eeecc370a (diff)
downloadgit-e3cf230324f740653d4fb4a3087c2daf9da62029.zip
git-e3cf230324f740653d4fb4a3087c2daf9da62029.tar.gz
git-e3cf230324f740653d4fb4a3087c2daf9da62029.tar.bz2
prefer mkpathdup to mkpath in assignments
As with the previous commit to git_path, assigning the result of mkpath is suspicious, since it is not clear whether we will still depend on the value after it may have been overwritten by subsequent calls. This patch converts low-hanging fruit to use mkpathdup instead of mkpath (with the downside that we must remember to free the result). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-p4.py')
0 files changed, 0 insertions, 0 deletions