summaryrefslogtreecommitdiff
path: root/git-difftool.perl
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2012-05-21 09:59:59 +0200
committerJunio C Hamano <gitster@pobox.com>2012-05-22 12:57:20 -0700
commit57e6fc69588ea5e1b6a151d60f2cf9fa636251c1 (patch)
tree0b3c4dff7120c7429f3a99f1a714f8343ff139af /git-difftool.perl
parentff22ff9909a09d775c740f31443f96edd5b5e006 (diff)
downloadgit-57e6fc69588ea5e1b6a151d60f2cf9fa636251c1.tar.gz
cmd_fetch_pack(): respect constness of argv parameter
The old code cast away the constness of the strings passed to the function in argument argv[], which could result in their being modified by filter_refs(). Fix by copying reference names from argv and putting them into our own array (similarly to how refnames passed to stdin were already handled). Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-difftool.perl')
0 files changed, 0 insertions, 0 deletions