diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-05-21 09:59:59 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-05-22 12:57:20 -0700 |
commit | 57e6fc69588ea5e1b6a151d60f2cf9fa636251c1 (patch) | |
tree | 0b3c4dff7120c7429f3a99f1a714f8343ff139af /cache-tree.h | |
parent | cmd_fetch_pack(): combine the loop termination conditions (diff) | |
download | tgif-57e6fc69588ea5e1b6a151d60f2cf9fa636251c1.tar.xz |
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 'cache-tree.h')
0 files changed, 0 insertions, 0 deletions