summaryrefslogtreecommitdiff
path: root/reflog-walk.c
diff options
context:
space:
mode:
authorLibravatar Michael Haggerty <mhagger@alum.mit.edu>2012-05-21 09:59:59 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-05-22 12:57:20 -0700
commit57e6fc69588ea5e1b6a151d60f2cf9fa636251c1 (patch)
tree0b3c4dff7120c7429f3a99f1a714f8343ff139af /reflog-walk.c
parentcmd_fetch_pack(): combine the loop termination conditions (diff)
downloadtgif-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 'reflog-walk.c')
0 files changed, 0 insertions, 0 deletions